chore: refresh gramsrv public release

This commit is contained in:
A 2026-06-30 14:37:43 +08:00
parent 75cebe8dbf
commit 70b6820474
1274 changed files with 378751 additions and 59919 deletions

View file

@ -0,0 +1,63 @@
package domain
const (
MaxBotInlineResults = 50
MaxBotInlineResultIDLen = 64
MaxBotInlineNextOffsetLen = 64
MaxBotInlineSwitchTextLen = 256
MaxBotInlineWebURLLen = 2048
MaxBotInlineWebMimeLen = 128
MaxBotInlineWebSize = 20 * 1024 * 1024
MaxBotPreparedInlineIDLen = 128
)
type BotInlineResult struct {
ID string
Type string
Title string
Description string
URL string
Thumb *BotInlineWebDocument
Content *BotInlineWebDocument
Message string
Entities []MessageEntity
ReplyMarkup *MessageReplyMarkup
NoWebpage bool
MediaAuto bool
Media *MessageMedia
}
type BotInlineWebDocument struct {
URL string
AccessHash int64
Size int
MimeType string
Attributes []DocumentAttribute
}
type BotInlineResults struct {
QueryID int64
BotUserID int64
UserID int64
Peer Peer
Query string
Geo *MessageGeoPoint
Gallery bool
Private bool
Results []BotInlineResult
CacheTime int
NextOffset string
SwitchPM *BotInlineSwitchPM
SwitchWeb *BotInlineSwitchWebView
PeerTypes []string
}
type BotInlineSwitchPM struct {
Text string
StartParam string
}
type BotInlineSwitchWebView struct {
Text string
URL string
}