import { Audio, ContentTypes, Document, IAnswerCallbackQueryOptions, ICopyMessageOptions, IDeleteWebhookConfig, IFile, IForwardMessageOptions, IMessage, IMessageId, InputSupportedMedia, ISendAnimationOptions, ISendAudioOptions, ISendDocumentOptions, ISendLocationOptions, ISendMediaGroupOptions, ISendPhotoOptions, ISendVideoNoteOptions, ISendVideoOptions, ISendVoiceOptions, IUser, IWebhookConfig, Keyboard, MessageCreator, Photo, Video, Voice, IStopMessageLiveLocationOptions, ISendVenueOptions, ISendContactOptions, ISendPollOptions, DiceEmojis, ISendDiceOptions, ChatActions, IUserProfilePhotos, IWebhookInfo, IChatPermissions, IPromoteChatPermissions, ICreateChatInviteLinkOptions, IChatInviteLink, IChat, ChatMember, IBotCommand, BotCommandScope, IChatAdministratorRights, IEditTextOptions, EditContentTypes, IEditCaptionOptions, SendOptions, IEditKeyboardOptions, IStopPollOptions, IPoll, IEditLiveLocationOptions, IEditInviteLinkOptions } from '..'; import { Animation, Media, VideoNote } from './Media'; import { BotMenuButton } from '../types/menu-button.types'; export declare class Api { private readonly token?; constructor(token?: string); call(token: string, method: string, config?: K, headers?: any): Promise; callApi(method: string, config?: K): Promise; private static appendMediaToFormData; private buildFormData; private buildAttachFormData; private static saveMediaFileId; /** * Returns info about the bot * */ getMe(): Promise; /** * Log out * @see https://core.telegram.org/bots/api#logout * */ logOut(): Promise; /** * Close * @see https://core.telegram.org/bots/api#close * */ close(): Promise; /** * Webhook info * @see https://core.telegram.org/bots/api#getwebhookinfo * @return Webhook info * */ getWebhookInfo(): Promise; /** * Set ups a webhook * @param config Webhook config * */ setWebhook(config: IWebhookConfig): Promise; /** * Deletes a webhook * @param config Delete webhook config * */ deleteWebhook(config?: IDeleteWebhookConfig): Promise; /** * Sends a message to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param content Message data that you want to send, some media (e.g. Photo/Message class) or string for text message * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link SendOptions} * @see https://core.telegram.org/bots/api#sendmessage * */ send(chatId: string | number, content: MessageCreator | ContentTypes, keyboard?: Keyboard | null, moreOptions?: SendOptions): Promise; /** * Sends a photo to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param photo Photo that you want to send (you can create it using Photo class {@link Photo}) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ISendPhotoOptions} * @see https://core.telegram.org/bots/api#sendphoto * */ sendPhoto(chatId: string | number, photo: Photo, keyboard?: Keyboard | null, moreOptions?: ISendPhotoOptions): Promise; /** * Sends a video to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param video Video that you want to send (you can create it using Video class {@link Video}) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ISendVideoOptions} * @see https://core.telegram.org/bots/api#sendvideo * */ sendVideo(chatId: string | number, video: Video, keyboard?: Keyboard | null, moreOptions?: ISendVideoOptions): Promise; /** * Sends a video note to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param videoNote Video note that you want to send (you can create it using Video class {@link VideoNote}) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ISendVideoNoteOptions} * @see https://core.telegram.org/bots/api#sendvideonote * */ sendVideoNote(chatId: string | number, videoNote: VideoNote, keyboard?: Keyboard | null, moreOptions?: ISendVideoNoteOptions): Promise; /** * Sends an audio to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param audio Audio that you want to send (you can create it using Audio class {@link Audio}) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ISendAudioOptions} * @see https://core.telegram.org/bots/api#sendaudio * */ sendAudio(chatId: string | number, audio: Audio, keyboard?: Keyboard | null, moreOptions?: ISendAudioOptions): Promise; /** * Sends a voice message to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param voice Voice that you want to send (you can create it using Audio class {@link Voice}) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ISendVoiceOptions} * @see https://core.telegram.org/bots/api#sendaudio * */ sendVoice(chatId: string | number, voice: Voice, keyboard?: Keyboard | null, moreOptions?: ISendVoiceOptions): Promise; /** * Sends a document to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param document Document that you want to send (you can create it using {@link Document}) class * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ISendDocumentOptions} * @see https://core.telegram.org/bots/api#senddocument * */ sendDocument(chatId: string | number, document: Document, keyboard?: Keyboard | null, moreOptions?: ISendDocumentOptions): Promise; /** * Sends an animation to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param animation Animation that you want to send (you can create it using {@link Animation}) class * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ISendAnimationOptions} * @see https://core.telegram.org/bots/api#sendanimation * */ sendAnimation(chatId: string | number, animation: Animation, keyboard?: Keyboard | null, moreOptions?: ISendAnimationOptions): Promise; /** * Sends a media group to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param mediaGroup Media group that you want to send (you can create it using {@link MediaGroup}) class * @param moreOptions More options {@link ISendMediaGroupOptions} * @see https://core.telegram.org/bots/api#sendmediagroup * */ sendMediaGroup(chatId: string | number, mediaGroup: InputSupportedMedia[], moreOptions?: ISendMediaGroupOptions): Promise; /** * Sends a location to the chat * @param chatId Chat ID where you want to send message. It can be id of group/channel or ID of user * @param latitude Latitude of the location * @param longitude Longitude of the location * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions Message options {@link ISendLocationOptions} * @see https://core.telegram.org/bots/api#sendlocation * */ sendLocation(chatId: number | string, latitude: number, longitude: number, keyboard?: Keyboard | null, moreOptions?: ISendLocationOptions): Promise; /** * Sends a venue to the chat * @param chatId Chat ID where you want to send venue. It can be id of group/channel or ID of user * @param latitude Latitude of the location * @param longitude Longitude of the location * @param title Venue title * @param address Venue address * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions Message options {@link ISendVenueOptions} * @see https://core.telegram.org/bots/api#sendvenue * */ sendVenue(chatId: number | string, latitude: number, longitude: number, title: string, address: string, keyboard?: Keyboard | null, moreOptions?: ISendVenueOptions): Promise; /** * Sends a contact to the chat * @param chatId Chat ID where you want to send a contact. It can be id of group/channel or ID of the user * @param phone Contact phone * @param firstName Contact first name * @param lastName Contact last name (optional) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions Message options {@link ISendContactOptions} * @see https://core.telegram.org/bots/api#sendcontact * */ sendContact(chatId: number | string, phone: string, firstName: string, lastName?: string | null, keyboard?: Keyboard | null, moreOptions?: ISendContactOptions): Promise; /** * Sends a poll to the chat * @param chatId Chat ID where you want to send a poll. It can be id of group/channel or ID of the user * @param question Poll question * @param options Poll options (2-10 strings 1-100 characters each) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions Message options {@link ISendPollOptions} * @see https://core.telegram.org/bots/api#sendpoll * */ sendPoll(chatId: number | string, question: string, options: string[], keyboard?: Keyboard | null, moreOptions?: ISendPollOptions): Promise; /** * Sends dice to the chat * @param chatId Chat ID where you want to send dice. It can be id of group/channel or ID of the user * @param emoji Dice emoji {@link DiceEmojis} * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions Message options {@link ISendDiceOptions} * @see https://core.telegram.org/bots/api#senddice * */ sendDice(chatId: number | string, emoji?: DiceEmojis | null, keyboard?: Keyboard | null, moreOptions?: ISendDiceOptions): Promise; /** * Edit a message * @param chatId Chat ID in which message you want to edit is located * @param msgId Message ID you want to edit * @param content Content you want to edit (string or class-marks) * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link IEditTextOptions} * @see https://core.telegram.org/bots/api#editmessagetext * */ edit(chatId: number | string | null, msgId: number | null, content: EditContentTypes, keyboard?: Keyboard | null, moreOptions?: IEditTextOptions): Promise; /** * Edit a message caption * @param chatId Chat ID in which message you want to edit is located * @param msgId Message ID you want to edit * @param caption Caption you want to edit * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link IEditTextOptions} * @see https://core.telegram.org/bots/api#editmessagecaption * */ editCaption(chatId: number | string | null, msgId: number | null, caption: string, keyboard?: Keyboard, moreOptions?: IEditCaptionOptions): Promise; /** * Edit a message keyboard * @param chatId Chat ID in which message you want to edit is located * @param msgId Message ID you want to edit * @param keyboard Keyboard you want to edit * @param moreOptions More options {@link IEditTextOptions} * @see https://core.telegram.org/bots/api#editmessagereplymarkup * */ editKeyboard(chatId: number | string | null, msgId: number | null, keyboard?: Keyboard, moreOptions?: IEditKeyboardOptions): Promise; /** * Edit a message media * @param chatId Chat ID in which message you want to edit is located * @param msgId Message ID you want to edit * @param media Media you want to edit * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link IEditTextOptions} * @see https://core.telegram.org/bots/api#editmessagemedia * */ editMedia(chatId: number | string | null, msgId: number | null, media: Media, keyboard?: Keyboard, moreOptions?: IEditCaptionOptions): Promise; /** * Edit chat live location * @param chatId Chat id in which location you want to edit is located * @param msgId Message id you want to edit live location * @param latitude Location latitude * @param longitude Location longitude * @param keyboard Optional. Keyboard you want to add * @param moreOptions Optional. More options. {@link IEditLiveLocationOptions} * @see https://core.telegram.org/bots/api#editchatlivelocation * */ editLiveLocation(chatId: number | string, msgId: number, latitude: number, longitude: number, keyboard?: Keyboard, moreOptions?: IEditLiveLocationOptions): Promise; /** * New chat invite link wrapper * @param chatId Chat id in which you want to edit invite link * @param inviteLink Invite link you want to edit * @param options Options you want to edit. {@link IEditInviteLinkOptions} * @see https://core.telegram.org/bots/api#editchatinvitelink * */ editInviteLink(chatId: number | string | null, inviteLink: string, options: IEditInviteLinkOptions): Promise; /** * Delete a message * @param chatId Chat ID in which message you want to delete is located * @param msgId Message ID you want to delete * @see https://core.telegram.org/bots/api#deletemessage * @return true on success * */ delete(chatId: number | string | null, msgId: number | null): Promise; /** * Stop a poll * @param chatId Chat ID in which poll you want to stop is located * @param msgId Message ID of the poll you want to stop * @param keyboard Keyboard you want to edit * @param moreOptions More options {@link IStopPollOptions} * @see https://core.telegram.org/bots/api#stoppoll * */ stopPoll(chatId: number | string | null, msgId: number | null, keyboard?: Keyboard, moreOptions?: IStopPollOptions): Promise; /** * Setups chat action * @param chatId Chat ID where you want to send action. It can be id of group/channel or ID of the user * @param action Action type {@link ChatActions} * @see https://core.telegram.org/bots/api#sendchataction * */ chatAction(chatId: number | string, action: ChatActions): Promise; /** * @param userId Id of the user you want to get profile photos * @param limit Limit of user profile photos * @param offset Skip user profile photos * @see https://core.telegram.org/bots/api#getuserprofilephotos * @return User profile photos * */ getUserProfilePhotos(userId: number, limit?: number, offset?: number): Promise; /** * Ban chat member * @param chatId Id of the chat in which the person you want to ban is located * @param userId User id you want to ban * @param untilDate Ban end date * @param revokeMessages Remove all messages by this user * @see https://core.telegram.org/bots/api#banchatmember * @return true on success * */ ban(chatId: number | string, userId: number, untilDate?: number, revokeMessages?: boolean): Promise; /** * Unban chat member * @param chatId Id of the chat in which the person you want to ban is located * @param userId User id you want to ban * @param onlyIfBanned Do nothing if the user is not banned * @see https://core.telegram.org/bots/api#unbanchatmember * @return true on success * */ unban(chatId: number | string, userId: number, onlyIfBanned?: boolean): Promise; /** * Set admin custom title * @param chatId Id of the chat in which the person you want to set custom title is located * @param userId User id you want to set a custom title for * @param title Admin custom title (status, post, job title. 0-16 characters, emoji are not allowed) * @see https://core.telegram.org/bots/api#setchatadministratorcustomtitle * @return true on success * */ adminTitle(chatId: number | string, userId: number, title: string): Promise; /** * Restrict chat member * @param chatId Id of the chat in which the person you want to restrict is located * @param userId User id you want to restrict * @param permissions Permissions you grant to the user {@link IChatPermissions} * @param untilDate Date when restrictions will be lifted for the user, unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever * @see https://core.telegram.org/bots/api#restrictchatmember * @return true on success * */ restrict(chatId: number | string, userId: number, permissions: IChatPermissions, untilDate?: number): Promise; /** * Promote chat member * @param chatId Id of the chat in which the person you want to promote is located * @param userId User id you want to promote * @param permissions Permissions you grant to the user {@link IPromoteChatPermissions} * @see https://core.telegram.org/bots/api#promotechatmember * @return true on success * */ promote(chatId: number | string, userId: number, permissions: IPromoteChatPermissions): Promise; /** * Set chat permissions * @param chatId Id of the chat you want to set permissions * @param permissions Chat permissions you want to set {@link IChatPermissions} * @see https://core.telegram.org/bots/api#setchatpermissions * @return true on success * */ setChatPermissions(chatId: number | string, permissions: IChatPermissions): Promise; /** * Export chat invite link * @param chatId Id of the chat you want to export invite link * @see https://core.telegram.org/bots/api#exportchatinvitelink * @return string Invite link on success * */ exportInviteLink(chatId: number | string): Promise; /** * Creates chat invite link * @param chatId Chat ID where you want to create invite link. It can be id of group/channel or ID of the user * @param moreOptions Message options {@link ICreateChatInviteLinkOptions} * @see https://core.telegram.org/bots/api#createchatinvitelink * @return Chat invite link info {@link IChatInviteLink} * */ createInviteLink(chatId: number | string, moreOptions?: ICreateChatInviteLinkOptions): Promise; /** * Revokes chat invite link * @param chatId Chat ID where you want to revoke invite link. It can be id of group/channel or ID of the user * @param inviteLink Invite link you want to revoke * @see https://core.telegram.org/bots/api#revokechatinvitelink * @return Chat invite link info {@link IChatInviteLink} * */ revokeInviteLink(chatId: number | string, inviteLink: string): Promise; /** * Set chat photo * @param chatId Chat ID where you want to set chat photo. It can be id of group/channel or ID of the user * @param photo Photo you want to set (you can create it using Photo class) * @see https://core.telegram.org/bots/api#setchatphoto * @return true on success * */ setChatPhoto(chatId: number | string, photo: Photo): Promise; /** * Deletes chat photo * @param chatId Chat ID where you want to delete chat photo. It can be id of group/channel or ID of the user * @see https://core.telegram.org/bots/api#deletechatphoto * @return true on success * */ deleteChatPhoto(chatId: number | string): Promise; /** * Set chat title * @param chatId Chat ID where you want to set chat title. It can be id of group/channel or ID of the user * @param title Title you want to set for the chat * @see https://core.telegram.org/bots/api#setchattitle * @return true on success * */ setChatTitle(chatId: number | string, title: string): Promise; /** * Set chat title * @param chatId Chat ID where you want to set chat description. It can be id of group/channel or ID of the user * @param description Description you want to set for the chat * @see https://core.telegram.org/bots/api#setchatdescription * @return true on success * */ setChatDescription(chatId: number | string, description: string): Promise; /** * Pin chat message * @param chatId Chat ID where you want to pin message. It can be id of group/channel or ID of the user * @param msgId Message ID you want to pin * @param disableNotification Optional. Disable notification for all chat users that you have pinned a message * @see https://core.telegram.org/bots/api#pinchatmessage * @return true on success * */ pin(chatId: number | string, msgId: number, disableNotification?: boolean): Promise; /** * Unpin chat message * @param chatId Chat ID where you want to unpin message. It can be id of group/channel or ID of the user * @param msgId Message ID you want to unpin. Or pass 'all' to unpin all messages * @see https://core.telegram.org/bots/api#unpinchatmessage * @return true on success * */ unpin(chatId: number | string, msgId: number | 'all'): Promise; /** * Unpin all chat messages * @param chatId Chat ID where you want to unpin all messages. It can be id of group/channel or ID of the user * @see https://core.telegram.org/bots/api#unpinallchatmessages * @return true on success * */ unpinAll(chatId: number | string): Promise; /** * Leaves chat * @param chatId Chat ID you want to leave * @see https://core.telegram.org/bots/api#leavechat * @return true on success * */ leave(chatId: number | string): Promise; /** * Get chat * @param chatId Chat ID you want to get * @see https://core.telegram.org/bots/api#getchat * @return Chat info on success {@link IChat} * */ getChat(chatId: number | string): Promise; /** * Get chat administrators * @param chatId Chat ID in which you want to get administrators * @see https://core.telegram.org/bots/api#getchatadministrators * @return Array of {@link ChatMember} * */ getChatAdmins(chatId: number | string): Promise; /** * Get chat member count * @param chatId Chat ID in which you want to get member count * @see https://core.telegram.org/bots/api#getchatmembercount * @return {?number} * */ getChatMemberCount(chatId: number | string): Promise; /** * Get chat member * @param chatId Chat ID in which you want to get member info * @param userId User ID you want to get chat member info * @see https://core.telegram.org/bots/api#getchatmember * @return {@link ChatMember} * */ getChatMember(chatId: number | string, userId: number): Promise; /** * Set chat sticker set * @param chatId Chat ID you want to set sticker set * @param stickerSetName Sticker set name you want to set * @see https://core.telegram.org/bots/api#setchatstickerset * @return {true} on success * */ setChatStickerSet(chatId: number | string, stickerSetName: string): Promise; /** * Delete chat sticker set * @param chatId Chat ID you want to delete sticker set * @see https://core.telegram.org/bots/api#deletechatstickerset * @return {true} on success * */ deleteChatStickerSet(chatId: number | string): Promise; /** * Set my commands * @param commands Commands you want to set (Array of {@link IBotCommand}) * @param scope Optional. Scope for which you want to set commands. {@link BotCommandScope} * @param languageCode Optional. A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands * @see https://core.telegram.org/bots/api#setmycommands * @see https://core.telegram.org/bots#commands * @return {true} on success * */ setMyCommands(commands: IBotCommand[], scope?: BotCommandScope, languageCode?: string): Promise; /** * Delete my commands * @param scope Optional. Scope for which you want to delete commands. {@link BotCommandScope} * @param languageCode Optional. A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands * @see https://core.telegram.org/bots/api#deletemycommands * @return {true} on success * */ deleteMyCommands(scope?: BotCommandScope, languageCode?: string): Promise; /** * Get my commands * @param scope Optional. Scope for which you want to get commands. {@link BotCommandScope} * @param languageCode Optional. A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands * @see https://core.telegram.org/bots/api#getmycommands * @return Array of {@link IBotCommand} on success * */ getMyCommands(scope?: BotCommandScope, languageCode?: string): Promise; /** * Set chat menu button * @param menuButton Optional. Menu button you want to set ({@link BotMenuButton}) * @param chatId Optional. Chat ID in which you want to set menu button. It can be id of group/channel or ID of the user * @see https://core.telegram.org/bots/api#setchatmenubutton * @return {true} on success * */ setMenuButton(menuButton?: BotMenuButton, chatId?: number | string): Promise; /** * Get chat menu button * @param chatId Optional. Chat ID in which you want to get menu button. It can be id of group/channel or ID of the user * @see https://core.telegram.org/bots/api#getchatmenubutton * @return {@link BotMenuButton} on success * */ getMenuButton(chatId?: number | string): Promise; /** * Set my default administrator rights * @param rights Optional. Rights you want to set as default * @param forChannels Optional. Pass true to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be changed * @see https://core.telegram.org/bots/api#setmydefaultadministratorrights * @return {true} on success * */ setMyDefaultAdminRights(rights?: IChatAdministratorRights, forChannels?: boolean): Promise; /** * Get my default administrator rights * @param forChannels Optional. Pass true to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned * @see https://core.telegram.org/bots/api#getmydefaultadministratorrights * @return {@link IChatAdministratorRights} on success * */ getMyDefaultAdminRights(forChannels?: boolean): Promise; /** * Approves chat join request * @param chatId Chat ID where you want to approve join request. It can be id of group/channel or ID of the user * @param userId User ID you want to approve join request * @see https://core.telegram.org/bots/api#approvechatjoinrequest * @return true on success * */ approveJoinRequest(chatId: number | string, userId: number): Promise; /** * Declines chat join request * @param chatId Chat ID where you want to decline join request. It can be id of group/channel or ID of the user * @param userId User ID you want to decline join request * @see https://core.telegram.org/bots/api#declinechatjoinrequest * @return true on success * */ declineJoinRequest(chatId: number | string, userId: number): Promise; /** * Ban chat sender chat * @param chatId Id of the chat in which the chat you want to ban is located * @param senderChatId Chat id you want to ban * @see https://core.telegram.org/bots/api#banchatsenderchat * @return true on success * */ banChat(chatId: number | string, senderChatId: number): Promise; /** * Unban chat sender chat * @param chatId Id of the chat in which the chat you want to unban is located * @param senderChatId Chat id you want to ban * @see https://core.telegram.org/bots/api#unbanchatsenderchat * @return true on success * */ unbanChat(chatId: number | string, senderChatId: number): Promise; /** * Answers to the callback query (inline button click) * @param callback_query_id Callback query id * @param moreOptions More options {@link IAnswerCallbackQueryOptions} * @see https://core.telegram.org/bots/api#answercallbackquery * */ answerCallbackQuery(callback_query_id: string, moreOptions?: IAnswerCallbackQueryOptions): Promise; /** * Alert * @param callback_query_id Callback query id * @param text Alert text * @param moreOptions More options {@link IAnswerCallbackQueryOptions} * @see https://core.telegram.org/bots/api#answercallbackquery * */ alert(callback_query_id: string, text: string, moreOptions?: IAnswerCallbackQueryOptions): Promise; /** * Toast * @param callback_query_id Callback query id * @param text Toast text * @param moreOptions More options {@link IAnswerCallbackQueryOptions} * @see https://core.telegram.org/bots/api#answercallbackquery * */ toast(callback_query_id: string, text: string, moreOptions?: IAnswerCallbackQueryOptions): Promise; /** * Returns info about the file * @param fileId File id that you want to get * @return {@link IFile} * */ getFile(fileId: string): Promise; /** * Forwards a message * @param msgId Id of the message you want to forward * @param fromChatId Chat id from you want to forward a message * @param toChatId Chat id you want to forward to * @param moreOptions More options {@link IForwardMessageOptions} * @see https://core.telegram.org/bots/api#forwardmessage * */ forward(msgId: number, fromChatId: number | string, toChatId: number | string, moreOptions?: IForwardMessageOptions): Promise; /** * Copies a message * @param msgId Id of the message you want to copy * @param fromChatId Chat id from you want to copy a message * @param toChatId Chat id you want to copy to * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link ICopyMessageOptions} * @see https://core.telegram.org/bots/api#copymessage * */ copy(msgId: number, fromChatId: number | string, toChatId: number | string, keyboard?: Keyboard | null, moreOptions?: ICopyMessageOptions): Promise; /** * Stops message live location * @param chatId Chat id * @param msgId Id of the live location message you want to stop * @param keyboard Pass Keyboard class if you want to add keyboard to the message * @param moreOptions More options {@link IStopMessageLiveLocationOptions} * @see https://core.telegram.org/bots/api#editmessagelivelocation * */ stopLiveLocation(chatId: number | string | null, msgId: number | null, keyboard?: Keyboard | null, moreOptions?: IStopMessageLiveLocationOptions): Promise; }