1
bot/models/forum.go

76 lines
2.5 KiB
Go
Raw Permalink Normal View History

package models
// ForumTopic https://core.telegram.org/bots/api#forumtopic
type ForumTopic struct {
MessageThreadID int `json:"message_thread_id"`
Name string `json:"name"`
IconColor int `json:"icon_color,omitempty"`
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}
2023-01-10 16:18:24 +08:00
// ForumTopicCreated https://core.telegram.org/bots/api#forumtopiccreated
type ForumTopicCreated struct {
Name string `json:"name"`
IconColor int `json:"icon_color"`
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}
2023-01-10 16:18:24 +08:00
// ForumTopicClosed https://core.telegram.org/bots/api#forumtopicclosed
type ForumTopicClosed struct {
}
2023-01-10 16:18:24 +08:00
// ForumTopicEdited https://core.telegram.org/bots/api#forumtopicedited
type ForumTopicEdited struct {
Name string `json:"name,omitempty"`
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}
// ForumTopicReopened https://core.telegram.org/bots/api#forumtopicreopened
type ForumTopicReopened struct {
}
2023-01-10 16:18:24 +08:00
// GeneralForumTopicHidden https://core.telegram.org/bots/api#generalforumtopichidden
type GeneralForumTopicHidden struct {
}
// GeneralForumTopicUnhidden https://core.telegram.org/bots/api#generalforumtopicunhidden
type GeneralForumTopicUnhidden struct {
}
2023-02-06 15:54:44 +08:00
// UserShared https://core.telegram.org/bots/api#usershared
type UserShared struct {
RequestID int `json:"request_id"`
UserID int64 `json:"user_id"`
}
2024-04-02 23:09:36 +08:00
// SharedUser https://core.telegram.org/bots/api#shareduser
type SharedUser struct {
UserID int64 `json:"user_id"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
Username string `json:"username,omitempty"`
Photo []PhotoSize `json:"photo,omitempty"`
}
2024-01-10 20:16:04 +08:00
// UsersShared https://core.telegram.org/bots/api#usersshared
type UsersShared struct {
2024-04-02 23:09:36 +08:00
RequestID int `json:"request_id"`
Users []SharedUser `json:"users"`
2024-01-10 20:16:04 +08:00
}
2023-02-06 15:54:44 +08:00
// ChatShared https://core.telegram.org/bots/api#chatshared
type ChatShared struct {
2024-04-02 23:09:36 +08:00
RequestID int `json:"request_id"`
ChatID int64 `json:"chat_id"`
Title string `json:"title,omitempty"`
Username string `json:"username,omitempty"`
Photo []PhotoSize `json:"photo,omitempty"`
2023-02-06 15:54:44 +08:00
}
2023-01-10 16:18:24 +08:00
// WriteAccessAllowed https://core.telegram.org/bots/api#writeaccessallowed
type WriteAccessAllowed struct {
FromRequest bool `json:"from_request,omitempty"`
WebAppName string `json:"web_app_name,omitempty"`
FromAttachmentMenu bool `json:"from_attachment_menu,omitempty"`
2023-01-10 16:18:24 +08:00
}