0
0
mirror of https://github.com/crazy-max/diun.git synced 2024-12-22 19:38:28 +00:00
crazy-max_diun/vendor/github.com/PaulSonOfLars/gotgbot/v2/gen_consts.go
dependabot[bot] 64f77319b2
chore(deps): bump github.com/PaulSonOfLars/gotgbot/v2
Bumps [github.com/PaulSonOfLars/gotgbot/v2](https://github.com/PaulSonOfLars/gotgbot) from 2.0.0-rc.27 to 2.0.0-rc.30.
- [Release notes](https://github.com/PaulSonOfLars/gotgbot/releases)
- [Commits](https://github.com/PaulSonOfLars/gotgbot/compare/v2.0.0-rc.27...v2.0.0-rc.30)

---
updated-dependencies:
- dependency-name: github.com/PaulSonOfLars/gotgbot/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-14 23:37:14 +00:00

147 lines
4.4 KiB
Go

// THIS FILE IS AUTOGENERATED. DO NOT EDIT.
// Regen by running 'go generate' in the repo root.
package gotgbot
// The consts listed below represent all the update types that can be requested from telegram.
const (
UpdateTypeMessage = "message"
UpdateTypeEditedMessage = "edited_message"
UpdateTypeChannelPost = "channel_post"
UpdateTypeEditedChannelPost = "edited_channel_post"
UpdateTypeBusinessConnection = "business_connection"
UpdateTypeBusinessMessage = "business_message"
UpdateTypeEditedBusinessMessage = "edited_business_message"
UpdateTypeDeletedBusinessMessages = "deleted_business_messages"
UpdateTypeMessageReaction = "message_reaction"
UpdateTypeMessageReactionCount = "message_reaction_count"
UpdateTypeInlineQuery = "inline_query"
UpdateTypeChosenInlineResult = "chosen_inline_result"
UpdateTypeCallbackQuery = "callback_query"
UpdateTypeShippingQuery = "shipping_query"
UpdateTypePreCheckoutQuery = "pre_checkout_query"
UpdateTypePurchasedPaidMedia = "purchased_paid_media"
UpdateTypePoll = "poll"
UpdateTypePollAnswer = "poll_answer"
UpdateTypeMyChatMember = "my_chat_member"
UpdateTypeChatMember = "chat_member"
UpdateTypeChatJoinRequest = "chat_join_request"
UpdateTypeChatBoost = "chat_boost"
UpdateTypeRemovedChatBoost = "removed_chat_boost"
)
// GetType is a helper method to easily identify the type of update that is being received.
func (u Update) GetType() string {
switch {
case u.Message != nil:
return UpdateTypeMessage
case u.EditedMessage != nil:
return UpdateTypeEditedMessage
case u.ChannelPost != nil:
return UpdateTypeChannelPost
case u.EditedChannelPost != nil:
return UpdateTypeEditedChannelPost
case u.BusinessConnection != nil:
return UpdateTypeBusinessConnection
case u.BusinessMessage != nil:
return UpdateTypeBusinessMessage
case u.EditedBusinessMessage != nil:
return UpdateTypeEditedBusinessMessage
case u.DeletedBusinessMessages != nil:
return UpdateTypeDeletedBusinessMessages
case u.MessageReaction != nil:
return UpdateTypeMessageReaction
case u.MessageReactionCount != nil:
return UpdateTypeMessageReactionCount
case u.InlineQuery != nil:
return UpdateTypeInlineQuery
case u.ChosenInlineResult != nil:
return UpdateTypeChosenInlineResult
case u.CallbackQuery != nil:
return UpdateTypeCallbackQuery
case u.ShippingQuery != nil:
return UpdateTypeShippingQuery
case u.PreCheckoutQuery != nil:
return UpdateTypePreCheckoutQuery
case u.PurchasedPaidMedia != nil:
return UpdateTypePurchasedPaidMedia
case u.Poll != nil:
return UpdateTypePoll
case u.PollAnswer != nil:
return UpdateTypePollAnswer
case u.MyChatMember != nil:
return UpdateTypeMyChatMember
case u.ChatMember != nil:
return UpdateTypeChatMember
case u.ChatJoinRequest != nil:
return UpdateTypeChatJoinRequest
case u.ChatBoost != nil:
return UpdateTypeChatBoost
case u.RemovedChatBoost != nil:
return UpdateTypeRemovedChatBoost
default:
return "unknown"
}
}
// The consts listed below represent all the parse_mode options that can be sent to telegram.
const (
ParseModeHTML = "HTML"
ParseModeMarkdownV2 = "MarkdownV2"
ParseModeMarkdown = "Markdown"
ParseModeNone = ""
)
// The consts listed below represent all the chat action options that can be sent to telegram.
const (
ChatActionTyping = "typing"
ChatActionUploadPhoto = "upload_photo"
ChatActionRecordVideo = "record_video"
ChatActionUploadVideo = "upload_video"
ChatActionRecordVoice = "record_voice"
ChatActionUploadVoice = "upload_voice"
ChatActionUploadDocument = "upload_document"
ChatActionChooseSticker = "choose_sticker"
ChatActionFindLocation = "find_location"
ChatActionRecordVideoNote = "record_video_note"
ChatActionUploadVideoNote = "upload_video_note"
)
// The consts listed below represent all the sticker types that can be obtained from telegram.
const (
StickerTypeRegular = "regular"
StickerTypeMask = "mask"
StickerTypeCustomEmoji = "custom_emoji"
)
// The consts listed below represent all the chat types that can be obtained from telegram.
const (
ChatTypePrivate = "private"
ChatTypeGroup = "group"
ChatTypeSupergroup = "supergroup"
ChatTypeChannel = "channel"
)