1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-06-21 10:45:05 +00:00

Add Bot API 10.1 Join Request Queries support

Adds:
- ChatJoinRequestQueryId value class and ChatJoinRequest.queryId field
- ExtendedBot.supportsJoinRequestQueries (User.supports_join_request_queries)
- ExtendedChat.guardBot (ChatFullInfo.guard_bot), parsed for public chats
- AnswerChatJoinRequestQuery request + ChatJoinRequestQueryResult enum
- SendChatJoinRequestWebApp request
- answerChatJoinRequestQuery / sendChatJoinRequestWebApp TelegramBot extensions

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 17:03:26 +06:00
parent 628e877064
commit f6d5b3ea71
13 changed files with 407 additions and 43 deletions

View File

@@ -1,9 +1,14 @@
package dev.inmo.tgbotapi.extensions.utils.extensions.raw
import dev.inmo.tgbotapi.types.ChatInviteLink
import dev.inmo.tgbotapi.types.ChatJoinRequestQueryId
import dev.inmo.tgbotapi.types.chat.ChatJoinRequest
import dev.inmo.tgbotapi.utils.RiskFeature
@RiskFeature(RawFieldsUsageWarning)
val ChatJoinRequest.invite_link: ChatInviteLink?
get() = inviteLink
@RiskFeature(RawFieldsUsageWarning)
val ChatJoinRequest.query_id: ChatJoinRequestQueryId?
get() = queryId