Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data Update
- = UpdateAuthorizationState { }
- | UpdateNewMessage { }
- | UpdateMessageSendAcknowledged { }
- | UpdateMessageSendSucceeded { }
- | UpdateMessageSendFailed { }
- | UpdateMessageContent { }
- | UpdateMessageEdited {
- chat_id :: Maybe Int
- message_id :: Maybe Int
- edit_date :: Maybe Int
- reply_markup :: Maybe ReplyMarkup
- | UpdateMessageIsPinned { }
- | UpdateMessageInteractionInfo { }
- | UpdateMessageContentOpened { }
- | UpdateMessageMentionRead { }
- | UpdateMessageUnreadReactions { }
- | UpdateMessageFactCheck {
- chat_id :: Maybe Int
- message_id :: Maybe Int
- fact_check :: Maybe FactCheck
- | UpdateMessageLiveLocationViewed { }
- | UpdateNewChat { }
- | UpdateChatTitle { }
- | UpdateChatPhoto { }
- | UpdateChatAccentColors { }
- | UpdateChatPermissions { }
- | UpdateChatLastMessage {
- chat_id :: Maybe Int
- last_message :: Maybe Message
- positions :: Maybe [ChatPosition]
- | UpdateChatPosition { }
- | UpdateChatAddedToList { }
- | UpdateChatRemovedFromList { }
- | UpdateChatReadInbox { }
- | UpdateChatReadOutbox { }
- | UpdateChatActionBar { }
- | UpdateChatBusinessBotManageBar { }
- | UpdateChatAvailableReactions { }
- | UpdateChatDraftMessage { }
- | UpdateChatEmojiStatus { }
- | UpdateChatMessageSender { }
- | UpdateChatMessageAutoDeleteTime { }
- | UpdateChatNotificationSettings { }
- | UpdateChatPendingJoinRequests { }
- | UpdateChatReplyMarkup { }
- | UpdateChatBackground { }
- | UpdateChatTheme { }
- | UpdateChatUnreadMentionCount { }
- | UpdateChatUnreadReactionCount { }
- | UpdateChatVideoChat { }
- | UpdateChatDefaultDisableNotification { }
- | UpdateChatHasProtectedContent { }
- | UpdateChatIsTranslatable { }
- | UpdateChatIsMarkedAsUnread { }
- | UpdateChatViewAsTopics { }
- | UpdateChatBlockList { }
- | UpdateChatHasScheduledMessages { }
- | UpdateChatFolders { }
- | UpdateChatOnlineMemberCount { }
- | UpdateSavedMessagesTopic { }
- | UpdateSavedMessagesTopicCount {
- topic_count :: Maybe Int
- | UpdateQuickReplyShortcut { }
- | UpdateQuickReplyShortcutDeleted {
- shortcut_id :: Maybe Int
- | UpdateQuickReplyShortcuts {
- shortcut_ids :: Maybe [Int]
- | UpdateQuickReplyShortcutMessages { }
- | UpdateForumTopicInfo { }
- | UpdateScopeNotificationSettings { }
- | UpdateReactionNotificationSettings { }
- | UpdateNotification { }
- | UpdateNotificationGroup { }
- | UpdateActiveNotifications {
- groups :: Maybe [NotificationGroup]
- | UpdateHavePendingNotifications { }
- | UpdateDeleteMessages {
- chat_id :: Maybe Int
- message_ids :: Maybe [Int]
- is_permanent :: Maybe Bool
- from_cache :: Maybe Bool
- | UpdateChatAction { }
- | UpdateUserStatus { }
- | UpdateUser { }
- | UpdateBasicGroup { }
- | UpdateSupergroup { }
- | UpdateSecretChat { }
- | UpdateUserFullInfo { }
- | UpdateBasicGroupFullInfo { }
- | UpdateSupergroupFullInfo { }
- | UpdateServiceNotification { }
- | UpdateFile { }
- | UpdateFileGenerationStart { }
- | UpdateFileGenerationStop { }
- | UpdateFileDownloads {
- total_size :: Maybe Int
- total_count :: Maybe Int
- downloaded_size :: Maybe Int
- | UpdateFileAddedToDownloads { }
- | UpdateFileDownload { }
- | UpdateFileRemovedFromDownloads { }
- | UpdateApplicationVerificationRequired { }
- | UpdateCall { }
- | UpdateGroupCall { }
- | UpdateGroupCallParticipant { }
- | UpdateNewCallSignalingData { }
- | UpdateUserPrivacySettingRules { }
- | UpdateUnreadMessageCount { }
- | UpdateUnreadChatCount { }
- | UpdateStory { }
- | UpdateStoryDeleted { }
- | UpdateStorySendSucceeded { }
- | UpdateStorySendFailed { }
- | UpdateChatActiveStories { }
- | UpdateStoryListChatCount { }
- | UpdateStoryStealthMode { }
- | UpdateOption { }
- | UpdateStickerSet { }
- | UpdateInstalledStickerSets { }
- | UpdateTrendingStickerSets { }
- | UpdateRecentStickers {
- is_attached :: Maybe Bool
- sticker_ids :: Maybe [Int]
- | UpdateFavoriteStickers {
- sticker_ids :: Maybe [Int]
- | UpdateSavedAnimations {
- animation_ids :: Maybe [Int]
- | UpdateSavedNotificationSounds { }
- | UpdateDefaultBackground { }
- | UpdateChatThemes {
- chat_themes :: Maybe [ChatTheme]
- | UpdateAccentColors {
- colors :: Maybe [AccentColor]
- available_accent_color_ids :: Maybe [Int]
- | UpdateProfileAccentColors { }
- | UpdateLanguagePackStrings { }
- | UpdateConnectionState { }
- | UpdateTermsOfService { }
- | UpdateUsersNearby {
- users_nearby :: Maybe [ChatNearby]
- | UpdateUnconfirmedSession { }
- | UpdateAttachmentMenuBots {
- bots :: Maybe [AttachmentMenuBot]
- | UpdateWebAppMessageSent { }
- | UpdateActiveEmojiReactions { }
- | UpdateAvailableMessageEffects {
- reaction_effect_ids :: Maybe [Int]
- sticker_effect_ids :: Maybe [Int]
- | UpdateDefaultReactionType { }
- | UpdateSavedMessagesTags { }
- | UpdateActiveLiveLocationMessages { }
- | UpdateOwnedStarCount {
- star_count :: Maybe Int
- | UpdateChatRevenueAmount { }
- | UpdateStarRevenueStatus { }
- | UpdateSpeechRecognitionTrial { }
- | UpdateDiceEmojis { }
- | UpdateAnimatedEmojiMessageClicked { }
- | UpdateAnimationSearchParameters { }
- | UpdateSuggestedActions { }
- | UpdateSpeedLimitNotification { }
- | UpdateContactCloseBirthdays { }
- | UpdateAutosaveSettings { }
- | UpdateBusinessConnection { }
- | UpdateNewBusinessMessage { }
- | UpdateBusinessMessageEdited { }
- | UpdateBusinessMessagesDeleted {
- connection_id :: Maybe Text
- chat_id :: Maybe Int
- message_ids :: Maybe [Int]
- | UpdateNewInlineQuery { }
- | UpdateNewChosenInlineResult { }
- | UpdateNewCallbackQuery {
- _id :: Maybe Int
- sender_user_id :: Maybe Int
- chat_id :: Maybe Int
- message_id :: Maybe Int
- chat_instance :: Maybe Int
- payload :: Maybe CallbackQueryPayload
- | UpdateNewInlineCallbackQuery { }
- | UpdateNewBusinessCallbackQuery { }
- | UpdateNewShippingQuery { }
- | UpdateNewPreCheckoutQuery { }
- | UpdateNewCustomEvent { }
- | UpdateNewCustomQuery { }
- | UpdatePoll { }
- | UpdatePollAnswer {
- poll_id :: Maybe Int
- voter_id :: Maybe MessageSender
- option_ids :: Maybe [Int]
- | UpdateChatMember { }
- | UpdateNewChatJoinRequest { }
- | UpdateChatBoost { }
- | UpdateMessageReaction { }
- | UpdateMessageReactions { }
- | UpdatePaidMediaPurchased { }
Documentation
Contains notifications about data changes
UpdateAuthorizationState | The user authorization state has changed |
| |
UpdateNewMessage | A new message was received; can also be an outgoing message |
UpdateMessageSendAcknowledged | A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully. This update is sent only if the option "use_quick_ack" is set to true. This update may be sent multiple times for the same message |
UpdateMessageSendSucceeded | A message has been successfully sent |
UpdateMessageSendFailed | A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update |
UpdateMessageContent | The message content has changed |
| |
UpdateMessageEdited | A message was edited. Changes in the message content will come in a separate updateMessageContent |
| |
UpdateMessageIsPinned | The message pinned state was changed |
UpdateMessageInteractionInfo | The information about interactions with a message has changed |
| |
UpdateMessageContentOpened | The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the self-destruct timer |
UpdateMessageMentionRead | A message with an unread mention was read |
| |
UpdateMessageUnreadReactions | The list of unread reactions added to a message was changed |
| |
UpdateMessageFactCheck | A fact-check added to a message was changed |
| |
UpdateMessageLiveLocationViewed | A message with a live location was viewed. When the update is received, the application is expected to update the live location |
UpdateNewChat | A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates |
UpdateChatTitle | The title of a chat was changed |
UpdateChatPhoto | A chat photo was changed |
UpdateChatAccentColors | Chat accent colors have changed |
| |
UpdateChatPermissions | Chat permissions were changed |
| |
UpdateChatLastMessage | The last message of a chat was changed |
| |
UpdateChatPosition | The position of a chat in a chat list has changed. An updateChatLastMessage or updateChatDraftMessage update might be sent instead of the update |
UpdateChatAddedToList | A chat was added to a chat list |
UpdateChatRemovedFromList | A chat was removed from a chat list |
UpdateChatReadInbox | Incoming messages were read or the number of unread messages has been changed |
| |
UpdateChatReadOutbox | Outgoing messages were read |
UpdateChatActionBar | The chat action bar was changed |
| |
UpdateChatBusinessBotManageBar | The bar for managing business bot was changed in a chat |
| |
UpdateChatAvailableReactions | The chat available reactions were changed |
| |
UpdateChatDraftMessage | A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update mustn't be applied |
| |
UpdateChatEmojiStatus | Chat emoji status has changed |
| |
UpdateChatMessageSender | The message sender that is selected to send messages in a chat has changed |
| |
UpdateChatMessageAutoDeleteTime | The message auto-delete or self-destruct timer setting for a chat was changed |
UpdateChatNotificationSettings | Notification settings for a chat were changed |
| |
UpdateChatPendingJoinRequests | The chat pending join requests were changed |
| |
UpdateChatReplyMarkup | The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user |
UpdateChatBackground | The chat background was changed |
| |
UpdateChatTheme | The chat theme was changed |
UpdateChatUnreadMentionCount | The chat unread_mention_count has changed |
UpdateChatUnreadReactionCount | The chat unread_reaction_count has changed |
UpdateChatVideoChat | A chat video chat state has changed |
UpdateChatDefaultDisableNotification | The value of the default disable_notification parameter, used when a message is sent to the chat, was changed |
UpdateChatHasProtectedContent | A chat content was allowed or restricted for saving |
UpdateChatIsTranslatable | Translation of chat messages was enabled or disabled |
UpdateChatIsMarkedAsUnread | A chat was marked as unread or was read |
UpdateChatViewAsTopics | A chat default appearance has changed |
UpdateChatBlockList | A chat was blocked or unblocked |
UpdateChatHasScheduledMessages | A chat's has_scheduled_messages field has changed |
UpdateChatFolders | The list of chat folders or a chat folder has changed |
| |
UpdateChatOnlineMemberCount | The number of online group members has changed. This update with non-zero number of online group members is sent only for currently opened chats. There is no guarantee that it is sent just after the number of online users has changed |
UpdateSavedMessagesTopic | Basic information about a Saved Messages topic has changed. This update is guaranteed to come before the topic identifier is returned to the application |
| |
UpdateSavedMessagesTopicCount | Number of Saved Messages topics has changed |
| |
UpdateQuickReplyShortcut | Basic information about a quick reply shortcut has changed. This update is guaranteed to come before the quick shortcut name is returned to the application |
| |
UpdateQuickReplyShortcutDeleted | A quick reply shortcut and all its messages were deleted |
| |
UpdateQuickReplyShortcuts | The list of quick reply shortcuts has changed |
| |
UpdateQuickReplyShortcutMessages | The list of quick reply shortcut messages has changed |
| |
UpdateForumTopicInfo | Basic information about a topic in a forum chat was changed |
UpdateScopeNotificationSettings | Notification settings for some type of chats were updated |
| |
UpdateReactionNotificationSettings | Notification settings for reactions were updated |
| |
UpdateNotification | A notification was changed |
| |
UpdateNotificationGroup | A list of active notifications in a notification group has changed |
| |
UpdateActiveNotifications | Contains active notifications that were shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update |
| |
UpdateHavePendingNotifications | Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications |
| |
UpdateDeleteMessages | Some messages were deleted |
| |
UpdateChatAction | A message sender activity in the chat has changed |
| |
UpdateUserStatus | The user went online or offline |
UpdateUser | Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application |
UpdateBasicGroup | Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application |
| |
UpdateSupergroup | Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application |
| |
UpdateSecretChat | Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application |
| |
UpdateUserFullInfo | Some data in userFullInfo has been changed |
| |
UpdateBasicGroupFullInfo | Some data in basicGroupFullInfo has been changed |
| |
UpdateSupergroupFullInfo | Some data in supergroupFullInfo has been changed |
| |
UpdateServiceNotification | A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification |
| |
UpdateFile | Information about a file was updated |
UpdateFileGenerationStart | The file generation process needs to be started by the application. Use setFileGenerationProgress and finishFileGeneration to generate the file |
| |
UpdateFileGenerationStop | File generation is no longer needed |
| |
UpdateFileDownloads | The state of the file download list has changed |
| |
UpdateFileAddedToDownloads | A file was added to the file download list. This update is sent only after file download list is loaded for the first time |
| |
UpdateFileDownload | A file download was changed. This update is sent only after file download list is loaded for the first time |
| |
UpdateFileRemovedFromDownloads | A file was removed from the file download list. This update is sent only after file download list is loaded for the first time |
UpdateApplicationVerificationRequired | A request can't be completed unless application verification is performed; for official mobile applications only. The method setApplicationVerificationToken must be called once the verification is completed or failed |
| |
UpdateCall | New call was created or information about a call was updated |
UpdateGroupCall | Information about a group call was updated |
| |
UpdateGroupCallParticipant | Information about a group call participant was changed. The updates are sent only after the group call is received through getGroupCall and only if the call is joined or being joined |
| |
UpdateNewCallSignalingData | New call signaling data arrived |
UpdateUserPrivacySettingRules | Some privacy setting rules have been changed |
| |
UpdateUnreadMessageCount | Number of unread messages in a chat list has changed. This update is sent only if the message database is used |
| |
UpdateUnreadChatCount | Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used |
| |
UpdateStory | A story was changed |
UpdateStoryDeleted | A story became inaccessible |
UpdateStorySendSucceeded | A story has been successfully sent |
UpdateStorySendFailed | A story failed to send. If the story sending is canceled, then updateStoryDeleted will be received instead of this update |
| |
UpdateChatActiveStories | The list of active stories posted by a specific chat has changed |
| |
UpdateStoryListChatCount | Number of chats in a story list has changed |
| |
UpdateStoryStealthMode | Story stealth mode settings have changed |
| |
UpdateOption | An option changed its value |
UpdateStickerSet | A sticker set has changed |
| |
UpdateInstalledStickerSets | The list of installed sticker sets was updated |
| |
UpdateTrendingStickerSets | The list of trending sticker sets was updated or some of them were viewed |
| |
UpdateRecentStickers | The list of recently used stickers was updated |
| |
UpdateFavoriteStickers | The list of favorite stickers was updated |
| |
UpdateSavedAnimations | The list of saved animations was updated |
| |
UpdateSavedNotificationSounds | The list of saved notification sounds was updated. This update may not be sent until information about a notification sound was requested for the first time |
| |
UpdateDefaultBackground | The default background has changed |
| |
UpdateChatThemes | The list of available chat themes has changed |
| |
UpdateAccentColors | The list of supported accent colors has changed |
| |
UpdateProfileAccentColors | The list of supported accent colors for user profiles has changed |
| |
UpdateLanguagePackStrings | Some language pack strings have been updated |
| |
UpdateConnectionState | The connection state has changed. This update must be used only to show a human-readable description of the connection state |
| |
UpdateTermsOfService | New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason "Decline ToS update" |
| |
UpdateUsersNearby | The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request |
| |
UpdateUnconfirmedSession | The first unconfirmed session has changed |
| |
UpdateAttachmentMenuBots | The list of bots added to attachment or side menu has changed |
| |
UpdateWebAppMessageSent | A message was sent by an opened Web App, so the Web App needs to be closed |
| |
UpdateActiveEmojiReactions | The list of active emoji reactions has changed |
UpdateAvailableMessageEffects | The list of available message effects has changed |
| |
UpdateDefaultReactionType | The type of default reaction has changed |
| |
UpdateSavedMessagesTags | Tags used in Saved Messages or a Saved Messages topic have changed |
| |
UpdateActiveLiveLocationMessages | The list of messages with active live location that need to be updated by the application has changed. The list is persistent across application restarts only if the message database is used |
UpdateOwnedStarCount | The number of Telegram Stars owned by the current user has changed |
| |
UpdateChatRevenueAmount | The revenue earned from sponsored messages in a chat has changed. If chat revenue screen is opened, then getChatRevenueTransactions may be called to fetch new transactions |
| |
UpdateStarRevenueStatus | The Telegram Star revenue earned by a bot or a chat has changed. If Telegram Star transaction screen of the chat is opened, then getStarTransactions may be called to fetch new transactions |
| |
UpdateSpeechRecognitionTrial | The parameters of speech recognition without Telegram Premium subscription has changed |
| |
UpdateDiceEmojis | The list of supported dice emojis has changed |
UpdateAnimatedEmojiMessageClicked | Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played |
UpdateAnimationSearchParameters | The parameters of animation search through getOption("animation_search_bot_username") bot has changed |
UpdateSuggestedActions | The list of suggested to the user actions has changed |
| |
UpdateSpeedLimitNotification | Download or upload file speed for the user was limited, but it can be restored by subscription to Telegram Premium. The notification can be postponed until a being downloaded or uploaded file is visible to the user. Use getOption("premium_download_speedup") or getOption("premium_upload_speedup") to get expected speedup after subscription to Telegram Premium |
UpdateContactCloseBirthdays | The list of contacts that had birthdays recently or will have birthday soon has changed |
| |
UpdateAutosaveSettings | Autosave settings for some type of chats were updated |
| |
UpdateBusinessConnection | A business connection has changed; for bots only |
| |
UpdateNewBusinessMessage | A new message was added to a business account; for bots only |
| |
UpdateBusinessMessageEdited | A message in a business account was edited; for bots only |
| |
UpdateBusinessMessagesDeleted | Messages in a business account were deleted; for bots only |
| |
UpdateNewInlineQuery | A new incoming inline query; for bots only |
| |
UpdateNewChosenInlineResult | The user has chosen a result of an inline query; for bots only |
| |
UpdateNewCallbackQuery | A new incoming callback query; for bots only |
| |
UpdateNewInlineCallbackQuery | A new incoming callback query from a message sent via a bot; for bots only |
| |
UpdateNewBusinessCallbackQuery | A new incoming callback query from a business message; for bots only |
| |
UpdateNewShippingQuery | A new incoming shipping query; for bots only. Only for invoices with flexible price |
| |
UpdateNewPreCheckoutQuery | A new incoming pre-checkout query; for bots only. Contains full information about a checkout |
| |
UpdateNewCustomEvent | A new incoming event; for bots only |
UpdateNewCustomQuery | A new incoming query; for bots only |
UpdatePoll | A poll was updated; for bots only |
UpdatePollAnswer | A user changed the answer to a poll; for bots only |
| |
UpdateChatMember | User rights changed in a chat; for bots only |
| |
UpdateNewChatJoinRequest | A user sent a join request to a chat; for bots only |
| |
UpdateChatBoost | A chat boost has changed; for bots only |
UpdateMessageReaction | User changed its reactions on a message with public reactions; for bots only |
| |
UpdateMessageReactions | Reactions added to a message with anonymous reactions have changed; for bots only |
UpdatePaidMediaPurchased | Paid media were purchased by a user; for bots only |