tdlib update reference - Telegram Lib
-
Original reference are from here: https://core.telegram.org/tdlib/docs/classes.html
Below is the extracted update which sent from Telegram's server to us.
The important updates are;
- updateNewChat
- updateNewMessage
View here in tabular format: https://docs.google.com/spreadsheets/d/1rjz8088sqJgozn_siYDuedMQ7mE82KtCcI_coICyfy0/edit?usp=sharing
{ updateActiveNotifications: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_active_notifications.html', desc: 'Contains active notifications that was 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.' }, updateAnimatedEmojiMessageClicked: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_animated_emoji_message_clicked.html', desc: '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: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_animation_search_parameters.html', desc: 'The parameters of animation search through GetOption("animation_search_bot_username") bot has changed.' }, updateAuthorizationState: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_authorization_state.html', desc: 'The user authorization state has changed.' }, updateBasicGroup: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_basic_group.html', desc: 'Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application.' }, updateBasicGroupFullInfo: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_basic_group_full_info.html', desc: 'Some data in basicGroupFullInfo has been changed.' }, updateCall: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_call.html', desc: 'New call was created or information about a call was updated.' }, updateChatAction: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_action.html', desc: 'A message sender activity in the chat has changed.' }, updateChatActionBar: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_action_bar.html', desc: 'The chat action bar was changed.' }, updateChatDefaultDisableNotification: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_default_disable_notification.html', desc: 'The value of the default disable_notification parameter, used when a message is sent to the chat, was changed.' }, updateChatDraftMessage: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_draft_message.html', desc: "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." }, updateChatFilters: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_filters.html', desc: 'The list of chat filters or a chat filter has changed.' }, updateChatHasProtectedContent: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_has_protected_content.html', desc: 'A chat content was allowed or restricted for saving.' }, updateChatHasScheduledMessages: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_has_scheduled_messages.html', desc: "A chat's has_scheduled_messages field has changed." }, updateChatIsBlocked: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_is_blocked.html', desc: 'A chat was blocked or unblocked.' }, updateChatIsMarkedAsUnread: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_is_marked_as_unread.html', desc: 'A chat was marked as unread or was read.' }, updateChatLastMessage: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_last_message.html', desc: 'The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case.' }, updateChatMember: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_member.html', desc: 'User rights changed in a chat; for bots only.' }, updateChatMessageSender: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_message_sender.html', desc: 'The message sender that is selected to send messages in a chat has changed.' }, updateChatMessageTtl: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_message_ttl.html', desc: 'The message Time To Live setting for a chat was changed.' }, updateChatNotificationSettings: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_notification_settings.html', desc: 'Notification settings for a chat were changed.' }, updateChatOnlineMemberCount: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_online_member_count.html', desc: 'The number of online group members has changed. This update with non-zero count is sent only for currently opened chats. There is no guarantee that it will be sent just after the count has changed.' }, updateChatPendingJoinRequests: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_pending_join_requests.html', desc: 'The chat pending join requests were changed.' }, updateChatPermissions: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_permissions.html', desc: 'Chat permissions was changed.' }, updateChatPhoto: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_photo.html', desc: 'A chat photo was changed.' }, updateChatPosition: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_position.html', desc: 'The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent.' }, updateChatReadInbox: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_read_inbox.html', desc: 'Incoming messages were read or the number of unread messages has been changed.' }, updateChatReadOutbox: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_read_outbox.html', desc: 'Outgoing messages were read.' }, updateChatReplyMarkup: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_reply_markup.html', desc: '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.' }, updateChatTheme: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_theme.html', desc: 'The chat theme was changed.' }, updateChatThemes: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_themes.html', desc: 'The list of available chat themes has changed.' }, updateChatTitle: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_title.html', desc: 'The title of a chat was changed.' }, updateChatUnreadMentionCount: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_unread_mention_count.html', desc: 'The chat unread_mention_count has changed.' }, updateChatVideoChat: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_chat_video_chat.html', desc: 'A chat video chat state has changed.' }, updateConnectionState: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_connection_state.html', desc: 'The connection state has changed. This update must be used only to show a human-readable description of the connection state.' }, updateDeleteMessages: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_delete_messages.html', desc: 'Some messages were deleted.' }, updateDiceEmojis: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_dice_emojis.html', desc: 'The list of supported dice emojis has changed.' }, updateFavoriteStickers: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_favorite_stickers.html', desc: 'The list of favorite stickers was updated.' }, updateFile: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_file.html', desc: 'Information about a file was updated.' }, updateFileGenerationStart: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_file_generation_start.html', desc: 'The file generation process needs to be started by the application.' }, updateFileGenerationStop: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_file_generation_stop.html', desc: 'File generation is no longer needed.' }, updateGroupCall: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_group_call.html', desc: 'Information about a group call was updated.' }, updateGroupCallParticipant: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_group_call_participant.html', desc: '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.' }, updateHavePendingNotifications: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_have_pending_notifications.html', desc: 'Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications.' }, updateInstalledStickerSets: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_installed_sticker_sets.html', desc: 'The list of installed sticker sets was updated.' }, updateLanguagePackStrings: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_language_pack_strings.html', desc: 'Some language pack strings have been updated.' }, updateMessageContent: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_content.html', desc: 'The message content has changed.' }, updateMessageContentOpened: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_content_opened.html', desc: 'The message content was opened. Updates voice note messages to "listened", video note messages to "viewed" and starts the TTL timer for self-destructing messages.' }, updateMessageEdited: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_edited.html', desc: 'A message was edited. Changes in the message content will come in a separate updateMessageContent.' }, updateMessageInteractionInfo: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_interaction_info.html', desc: 'The information about interactions with a message has changed.' }, updateMessageIsPinned: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_is_pinned.html', desc: 'The message pinned state was changed.' }, updateMessageLiveLocationViewed: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_live_location_viewed.html', desc: 'A message with a live location was viewed. When the update is received, the application is supposed to update the live location.' }, updateMessageMentionRead: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_mention_read.html', desc: 'A message with an unread mention was read.' }, updateMessageSendAcknowledged: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_send_acknowledged.html', desc: "A request to send a message has reached the Telegram server. This doesn't mean that the message will be sent successfully or even that the send message request will be processed. This update will be sent only if the option 'use_quick_ack' is set to true. This update may be sent multiple times for the same message." }, updateMessageSendFailed: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_send_failed.html', desc: '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.' }, updateMessageSendSucceeded: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_message_send_succeeded.html', desc: 'A message has been successfully sent.' }, updateNewCallbackQuery: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_callback_query.html', desc: 'A new incoming callback query; for bots only.' }, updateNewCallSignalingData: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_call_signaling_data.html', desc: 'New call signaling data arrived.' }, updateNewChat: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_chat.html', desc: '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.' }, updateNewChatJoinRequest: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_chat_join_request.html', desc: 'A user sent a join request to a chat; for bots only.' }, updateNewChosenInlineResult: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_chosen_inline_result.html', desc: 'The user has chosen a result of an inline query; for bots only.' }, updateNewCustomEvent: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_custom_event.html', desc: 'A new incoming event; for bots only.' }, updateNewCustomQuery: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_custom_query.html', desc: 'A new incoming query; for bots only.' }, updateNewInlineCallbackQuery: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_inline_callback_query.html', desc: 'A new incoming callback query from a message sent via a bot; for bots only.' }, updateNewInlineQuery: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_inline_query.html', desc: 'A new incoming inline query; for bots only.' }, updateNewMessage: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_message.html', desc: 'A new message was received; can also be an outgoing message.' }, updateNewPreCheckoutQuery: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_pre_checkout_query.html', desc: 'A new incoming pre-checkout query; for bots only. Contains full information about a checkout.' }, updateNewShippingQuery: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_new_shipping_query.html', desc: 'A new incoming shipping query; for bots only. Only for invoices with flexible price.' }, updateNotification: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_notification.html', desc: 'A notification was changed.' }, updateNotificationGroup: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_notification_group.html', desc: 'A list of active notifications in a notification group has changed.' }, updateOption: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_option.html', desc: 'An option changed its value.' }, updatePoll: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_poll.html', desc: 'A poll was updated; for bots only.' }, updatePollAnswer: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_poll_answer.html', desc: 'A user changed the answer to a poll; for bots only.' }, updateRecentStickers: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_recent_stickers.html', desc: 'The list of recently used stickers was updated.' }, updateSavedAnimations: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_saved_animations.html', desc: 'The list of saved animations was updated.' }, updateScopeNotificationSettings: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_scope_notification_settings.html', desc: 'Notification settings for some type of chats were updated.' }, updateSecretChat: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_secret_chat.html', desc: 'Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application.' }, updateSelectedBackground: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_selected_background.html', desc: 'The selected background has changed.' }, updateServiceNotification: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_service_notification.html', desc: 'A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification.' }, updateStickerSet: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_sticker_set.html', desc: 'A sticker set has changed.' }, updateSuggestedActions: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_suggested_actions.html', desc: 'The list of suggested to the user actions has changed.' }, updateSupergroup: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_supergroup.html', desc: '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.' }, updateSupergroupFullInfo: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_supergroup_full_info.html', desc: 'Some data in supergroupFullInfo has been changed.' }, updateTermsOfService: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_terms_of_service.html', desc: '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".' }, updateTrendingStickerSets: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_trending_sticker_sets.html', desc: 'The list of trending sticker sets was updated or some of them were viewed.' }, updateUnreadChatCount: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_unread_chat_count.html', desc: '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.' }, updateUnreadMessageCount: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_unread_message_count.html', desc: 'Number of unread messages in a chat list has changed. This update is sent only if the message database is used.' }, updateUser: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_user.html', desc: 'Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application.' }, updateUserFullInfo: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_user_full_info.html', desc: 'Some data in userFullInfo has been changed.' }, updateUserPrivacySettingRules: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_user_privacy_setting_rules.html', desc: 'Some privacy setting rules have been changed.' }, updateUsersNearby: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_users_nearby.html', desc: 'The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request.' }, updateUserStatus: { url: 'https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1update_user_status.html', desc: 'The user went online or offline.' } }