refactor(client): renamed MediaLike to InputFileLike
This commit is contained in:
parent
465a875460
commit
97e6eb1403
4 changed files with 6 additions and 6 deletions
|
@ -55,7 +55,7 @@ import {
|
||||||
FileDownloadParameters,
|
FileDownloadParameters,
|
||||||
InputPeerLike,
|
InputPeerLike,
|
||||||
MaybeDynamic,
|
MaybeDynamic,
|
||||||
MediaLike,
|
InputFileLike,
|
||||||
Message,
|
Message,
|
||||||
Photo,
|
Photo,
|
||||||
PropagationSymbol,
|
PropagationSymbol,
|
||||||
|
@ -748,7 +748,7 @@ export class TelegramClient extends BaseTelegramClient {
|
||||||
*/
|
*/
|
||||||
sendPhoto(
|
sendPhoto(
|
||||||
chatId: InputPeerLike,
|
chatId: InputPeerLike,
|
||||||
photo: MediaLike,
|
photo: InputFileLike,
|
||||||
params?: {
|
params?: {
|
||||||
/**
|
/**
|
||||||
* Caption for the photo
|
* Caption for the photo
|
||||||
|
|
|
@ -17,7 +17,7 @@ import {
|
||||||
Photo,
|
Photo,
|
||||||
UploadedFile,
|
UploadedFile,
|
||||||
UploadFileLike,
|
UploadFileLike,
|
||||||
MediaLike,
|
InputFileLike,
|
||||||
FileDownloadParameters,
|
FileDownloadParameters,
|
||||||
UpdateHandler,
|
UpdateHandler,
|
||||||
handlers,
|
handlers,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import {
|
import {
|
||||||
InputPeerLike,
|
InputPeerLike,
|
||||||
MediaLike,
|
InputFileLike,
|
||||||
Message,
|
Message,
|
||||||
BotKeyboard,
|
BotKeyboard,
|
||||||
ReplyMarkup,
|
ReplyMarkup,
|
||||||
|
@ -24,7 +24,7 @@ import { normalizeDate, randomUlong } from '../../utils/misc-utils'
|
||||||
export async function sendPhoto(
|
export async function sendPhoto(
|
||||||
this: TelegramClient,
|
this: TelegramClient,
|
||||||
chatId: InputPeerLike,
|
chatId: InputPeerLike,
|
||||||
photo: MediaLike,
|
photo: InputFileLike,
|
||||||
params?: {
|
params?: {
|
||||||
/**
|
/**
|
||||||
* Caption for the photo
|
* Caption for the photo
|
||||||
|
|
|
@ -30,7 +30,7 @@ export type UploadFileLike =
|
||||||
* can also pass {@link UploadedFile} returned from {@link TelegramClient.uploadFile},
|
* can also pass {@link UploadedFile} returned from {@link TelegramClient.uploadFile},
|
||||||
* raw `tl.TypeInputFile` and URLs to remote files
|
* raw `tl.TypeInputFile` and URLs to remote files
|
||||||
*/
|
*/
|
||||||
export type MediaLike = UploadFileLike | UploadedFile | tl.TypeInputFile
|
export type InputFileLike = UploadFileLike | UploadedFile | tl.TypeInputFile
|
||||||
|
|
||||||
export interface FileDownloadParameters {
|
export interface FileDownloadParameters {
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue