Skip to content

Commit

Permalink
correct params in sendMediaGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
LetItCode authored and Loskir committed Jan 14, 2021
1 parent 281bd15 commit b6cacbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions typings/telegram-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ export interface ExtraMediaGroup extends ExtraReplyMessage {
* Does not exist, see https://core.telegram.org/bots/api#sendmediagroup
*/
reply_markup?: never

/**
* Pass True, if the message should be sent even if the specified replied-to message is not found
*/
allow_sending_without_reply?: Boolean
}

export interface ExtraAnimation extends ExtraReplyMessage {
Expand Down
2 changes: 1 addition & 1 deletion typings/telegram.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export declare class Telegram extends ApiClient {
*/
sendMediaGroup(
chatId: number | string,
media: tt.MessageMedia[],
media: (tt.InputMediaAudio | tt.InputMediaDocument | tt.InputMediaPhoto | tt.InputMediaVideo)[],
extra?: tt.ExtraMediaGroup
): Promise<Array<tt.Message>>

Expand Down

0 comments on commit b6cacbb

Please sign in to comment.