Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ready] 0> help
- account_change_username <username> Sets profile username
- account_change_name <first_name> <last_name> Sets profile name
- account_change_photo <file> Sets profile photo. Photo will be cropped to square
- add_contact <phone> <first_name> <last_name> Tries to add user to contact list
- block_user <user> Blocks user
- channel_get_admins <channel> [limit] [offset] Gets channel admins
- channel_get_bots <channel> [limit] [offset] Gets channel bots
- channel_get_kicked <channel> [limit] [offset] Gets channel kicked members
- channel_get_members <channel> [limit] [offset] Gets channel recent members
- channel_change_about <channel> <about> Changes channel about info
- channel_change_username <channel> <username> Changes channel username
- channel_edit <channel> <param> <enabled> changes value of basic channel parameters. param=sign|invites. enabled=yes|no
- chat_add_user <chat> <user> [msgs_to_forward] Adds user to chat. Sends him last msgs_to_forward messages (only for group chats) from this chat
- chat_change_photo <chat> <file> Changes chat photo. Photo will be cropped to square
- chat_change_title <chat> <title> Renames chat
- chat_change_role <chat> <user> <role> changes user's role in chat. role=creator|moderator|editor|general|kicked
- chat_del_user <chat> <user> Deletes user from chat
- chat_info <chat> Prints info about chat
- chat_join <chat> Joins to chat
- chat_leave <chat> Leaves chat
- chat_check_invite_link <link> Print info about chat by link
- chat_create_broadcast <title> <about> Creates broadcast channel
- chat_create_group <title> <members ...> Creates group chat
- chat_create_supergroup <title> <about> Creates supergroup channel
- chat_export_invite_link <chat> Exports new invite link (and invalidates previous)
- chat_import_invite_link <link> Get chat by invite link and joins if possible
- chat_with_peer <chat> Interface option. All input will be treated as messages to this peer. Type /quit to end this mode
- compose <chat> Sends text message to peer
- compose_reply <chat> Sends text message to peer
- contact_list [limit] Prints contact list
- contact_delete <user> Deletes user from contact list
- delete_msg <msg_id> Deletes message
- dialog_list [limit] [offset] List of last conversations
- fwd <chat> <msg_id> Forwards message to peer. Forward to secret chats is forbidden
- get_message <msg_id> Get message by id
- group_upgrade <group> Upgrades group to supergroup
- help [command_name] Prints this help
- history <chat> [limit] [offset] Prints messages with this peer. Also marks messages as read
- load_file <file_id> Downloads file to downloads dirs. Prints file name after download end
- main_session Sends updates to this connection (or terminal). Useful only with listening socket
- mark_read <chat> Marks messages with peer as read
- msg <chat> <text> Sends text message to peer
- mute <chat> <mute_for> mutes chat for specified number of seconds (default 60)
- push_button <message> <button_id> Tries to push inline button
- resolve_username <username> Find chat by username
- reply <msg_id> <text> Sends text message to peer
- reply_file <msg_id> [type] <file> [caption] Replies to peer with file
- reply_fwd <msg_id> <fwd_id> Forwards message to peer. Forward to secret chats is forbidden
- reply_location <msg_id> <longitude> <latitude> Sends geo location
- search [chat] [limit] [from] [to] [offset] <query> Search for pattern in messages from date from to date to (unixtime) in messages with peer (if peer not present, in all messages)
- send_file <chat> [type] <file> [caption] Sends file to peer
- send_location <chat> <longitude> <latitude> Sends geo location
- send_typing <chat> [action] [progress] Sends typing action action=[typing|cancel|record_video|upload_video|record_voice|upload_voice|upload_photo|upload_document|choose_location|choose_contact]
- show_license Prints contents of GPL license
- start_bot <user> <chat> <data> Adds bot to chat
- timer <timeout> sets timer (in seconds)
- unblock_user <user> Unblocks user
- unmute <chat> unmutes chat
- version Prints client and library version
- view_file <file_id> Downloads file to downloads dir. Then tries to open it with system default action
- quit Quits immediately
- safe_quit Waits for all queries to end, then quits
- set <variable> <value> Sets value of param. Currently available: log_level, debug_verbosity, alarm, msg_num
- [Ready] 0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement