Skip to content

Commit

Permalink
Merge pull request #6 from alllex/bot-api-v7.3
Browse files Browse the repository at this point in the history
Bot API v7.3
  • Loading branch information
alllex authored May 9, 2024
2 parents 2f7a6c5 + 24af48e commit b8e4d1e
Show file tree
Hide file tree
Showing 9 changed files with 1,401 additions and 448 deletions.
550 changes: 467 additions & 83 deletions api-spec/telegram-bot-api.html

Large diffs are not rendered by default.

665 changes: 504 additions & 161 deletions api/tbot-api.api

Large diffs are not rendered by default.

62 changes: 35 additions & 27 deletions src/main/generated-kotlin/me/alllex/tbot/api/model/Methods.kt

Large diffs are not rendered by default.

52 changes: 29 additions & 23 deletions src/main/generated-kotlin/me/alllex/tbot/api/model/RequestTypes.kt

Large diffs are not rendered by default.

62 changes: 35 additions & 27 deletions src/main/generated-kotlin/me/alllex/tbot/api/model/TryMethods.kt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ suspend fun TelegramBotApiClient.trySendAnimation(requestBody: SendAnimationRequ
telegramPost("sendAnimation", requestBody)

/**
* Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
* Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
*/
suspend fun TelegramBotApiClient.trySendVoice(requestBody: SendVoiceRequest): TelegramResponse<Message> =
telegramPost("sendVoice", requestBody)
Expand Down Expand Up @@ -318,9 +318,9 @@ suspend fun TelegramBotApiClient.tryLeaveChat(requestBody: LeaveChatRequest): Te
telegramPost("leaveChat", requestBody)

/**
* Use this method to get up to date information about the chat. Returns a Chat object on success.
* Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success.
*/
suspend fun TelegramBotApiClient.tryGetChat(requestBody: GetChatRequest): TelegramResponse<Chat> =
suspend fun TelegramBotApiClient.tryGetChat(requestBody: GetChatRequest): TelegramResponse<ChatFullInfo> =
telegramPost("getChat", requestBody)

/**
Expand Down

Large diffs are not rendered by default.

316 changes: 250 additions & 66 deletions src/main/generated-kotlin/me/alllex/tbot/api/model/Types.kt

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit b8e4d1e

Please sign in to comment.