Object which is perceived by the client without a call on its part when an event occurs.
updatesTooLong#e317af7e = Updates;
updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> = Updates;
updateShort#78d4dec1 update:Update date:int = Updates;
updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> = Updates;
---functions---
contacts.deleteContacts#96a0e00 id:Vector<InputUser> = Updates;
contacts.addContact#e8f463d0 flags:# add_phone_privacy_exception:flags.0?true id:InputUser first_name:string last_name:string phone:string = Updates;
contacts.acceptContact#f831a20f id:InputUser = Updates;
contacts.getLocated#d348bc44 flags:# background:flags.1?true geo_point:InputGeoPoint self_expires:flags.0?int = Updates;
contacts.blockFromReplies#29a8962c flags:# delete_message:flags.0?true delete_history:flags.1?true report_spam:flags.2?true msg_id:int = Updates;
messages.sendMessage#520c3870 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates;
messages.sendMedia#3491eba9 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates;
messages.forwardMessages#d9fee60e flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int = Updates;
messages.editChatTitle#dc452855 chat_id:int title:string = Updates;
messages.editChatPhoto#ca4c79d8 chat_id:int photo:InputChatPhoto = Updates;
messages.addChatUser#f9a0aa09 chat_id:int user_id:InputUser fwd_limit:int = Updates;
messages.deleteChatUser#e0611f16 chat_id:int user_id:InputUser = Updates;
messages.createChat#9cb126e users:Vector<InputUser> title:string = Updates;
messages.importChatInvite#6c50051c hash:string = Updates;
messages.startBot#e6df7378 bot:InputUser peer:InputPeer random_id:long start_param:string = Updates;
messages.migrateChat#15a3b8e3 chat_id:int = Updates;
messages.sendInlineBotResult#220815b0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true hide_via:flags.11?true peer:InputPeer reply_to_msg_id:flags.0?int random_id:long query_id:long id:string schedule_date:flags.10?int = Updates;
messages.editMessage#48f71778 flags:# no_webpage:flags.1?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.15?int = Updates;
messages.getAllDrafts#6a3f8d65 = Updates;
messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates;
messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates;
messages.sendMultiMedia#cc0110cb flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int = Updates;
messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates;
messages.sendVote#10ea6184 peer:InputPeer msg_id:int options:Vector<bytes> = Updates;
messages.getPollResults#73bb643b peer:InputPeer msg_id:int = Updates;
messages.editChatDefaultBannedRights#a5866b41 peer:InputPeer banned_rights:ChatBannedRights = Updates;
messages.sendScheduledMessages#bd38850a peer:InputPeer id:Vector<int> = Updates;
messages.deleteScheduledMessages#59ae2b16 peer:InputPeer id:Vector<int> = Updates;
help.getAppChangelog#9010ef6f prev_app_version:string = Updates;
channels.createChannel#3d5fb10f flags:# broadcast:flags.0?true megagroup:flags.1?true for_import:flags.3?true title:string about:string geo_point:flags.2?InputGeoPoint address:flags.2?string = Updates;
channels.editAdmin#d33c8902 channel:InputChannel user_id:InputUser admin_rights:ChatAdminRights rank:string = Updates;
channels.editTitle#566decd0 channel:InputChannel title:string = Updates;
channels.editPhoto#f12e57c9 channel:InputChannel photo:InputChatPhoto = Updates;
channels.joinChannel#24b524c5 channel:InputChannel = Updates;
channels.leaveChannel#f836aa95 channel:InputChannel = Updates;
channels.inviteToChannel#199f3a6c channel:InputChannel users:Vector<InputUser> = Updates;
channels.deleteChannel#c0111fe3 channel:InputChannel = Updates;
channels.toggleSignatures#1f69b606 channel:InputChannel enabled:Bool = Updates;
channels.editBanned#72796912 channel:InputChannel user_id:InputUser banned_rights:ChatBannedRights = Updates;
channels.togglePreHistoryHidden#eabbb94c channel:InputChannel enabled:Bool = Updates;
channels.editCreator#8f38cd1f channel:InputChannel user_id:InputUser password:InputCheckPasswordSRP = Updates;
channels.toggleSlowMode#edd49ef0 channel:InputChannel seconds:int = Updates;
phone.discardCall#b2cbc1c0 flags:# video:flags.0?true peer:InputPhoneCall duration:int reason:PhoneCallDiscardReason connection_id:long = Updates;
phone.setCallRating#59ead627 flags:# user_initiative:flags.0?true peer:InputPhoneCall rating:int comment:string = Updates;
account.getNotifyExceptions#53577479 flags:# compare_sound:flags.1?true peer:flags.0?InputNotifyPeer = Updates;
folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates;
folders.deleteFolder#1c295881 folder_id:int = Updates;
Constructor | Description |
---|---|
updatesTooLong | Too many updates, it is necessary to execute updates.getDifference. |
updateShortMessage | Info about a message sent to (received from) another user |
updateShortChatMessage | Shortened constructor containing info on one new incoming text message from a chat |
updateShort | Shortened constructor containing info on one update not requiring auxiliary data |
updatesCombined | Constructor for a group of updates. |
updates | Full constructor of updates |
updateShortSentMessage | Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object). |
Method | Description |
---|---|
contacts.deleteContacts | Deletes several contacts from the list. |
messages.sendMessage | Sends a message to a chat |
messages.sendMedia | Send a media |
messages.forwardMessages | Forwards messages by their IDs. |
messages.editChatTitle | Chanages chat name and sends a service message on it. |
messages.editChatPhoto | Changes chat photo and sends a service message on it |
messages.addChatUser | Adds a user to a chat and sends a service message on it. |
messages.deleteChatUser | Deletes a user from a chat and sends a service message on it. |
messages.createChat | Creates a new chat. |
messages.importChatInvite | Import a chat invite and join a private chat/supergroup/channel |
messages.startBot | Start a conversation with a bot using a deep linking parameter |
help.getAppChangelog | Get changelog of current app |
channels.createChannel | Create a supergroup/channel. |
channels.editAdmin | Modify the admin rights of a user in a supergroup/channel. |
channels.editTitle | Edit the name of a channel/supergroup |
channels.editPhoto | Change the photo of a channel/supergroup |
channels.joinChannel | Join a channel/supergroup |
channels.leaveChannel | Leave a channel/supergroup |
channels.inviteToChannel | Invite users to a channel/supergroup |
channels.deleteChannel | Delete a channel/supergroup |
messages.migrateChat | Turn a legacy group into a supergroup |
messages.sendInlineBotResult | Send a result obtained using messages.getInlineBotResults. |
channels.toggleSignatures | Enable/disable message signatures in channels |
messages.editMessage | Edit message |
messages.getAllDrafts | Save get all message drafts. |
messages.setGameScore | Use this method to set the score of the specified user in a game sent as a normal message (bots only). |
phone.discardCall | Refuse or end running call |
phone.setCallRating | Rate a call |
channels.editBanned | Ban/unban/kick a user in a supergroup/channel. |
messages.sendScreenshotNotification | Notify the other user in a private chat that a screenshot of the chat was taken |
channels.togglePreHistoryHidden | Hide/unhide message history for new channel/supergroup users |
messages.sendMultiMedia | Send an album of media |
messages.updatePinnedMessage | Pin a message |
account.getNotifyExceptions | Returns list of chats with non-default notification settings |
messages.sendVote | Vote in a poll |
messages.getPollResults | Get poll results |
messages.editChatDefaultBannedRights | Edit the default banned rights of a channel/supergroup/group. |
folders.editPeerFolders | Edit peers in folder |
folders.deleteFolder | Delete a folder |
contacts.addContact | Add an existing telegram user as contact |
contacts.acceptContact | If the peer settings of a new user allow us to add him as contact, add that user as contact |
channels.editCreator | Transfer channel ownership |
contacts.getLocated | Get contacts near you |
channels.toggleSlowMode | Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds |
messages.sendScheduledMessages | Send scheduled messages |
messages.deleteScheduledMessages | Delete scheduled messages |
contacts.blockFromReplies | Stop getting notifications about thread replies of a certain user in @replies |