mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2021-05-13 03:08:02 +03:00
UPG: add setChatAdministratorCustomTitle
This commit is contained in:
@@ -586,7 +586,6 @@ def restrict_chat_member(token, chat_id, user_id, until_date=None, can_send_mess
|
||||
payload['can_add_web_page_previews'] = can_add_web_page_previews
|
||||
if can_invite_users:
|
||||
payload['can_invite_users'] = can_invite_users
|
||||
|
||||
return _make_request(token, method_url, params=payload, method='post')
|
||||
|
||||
|
||||
@@ -614,6 +613,13 @@ def promote_chat_member(token, chat_id, user_id, can_change_info=None, can_post_
|
||||
return _make_request(token, method_url, params=payload, method='post')
|
||||
|
||||
|
||||
def set_chat_administrator_custom_title(token, chat_id, user_id, custom_title):
|
||||
method_url = 'setChatAdministratorCustomTitle'
|
||||
payload = {
|
||||
'chat_id': chat_id, 'user_id': user_id, 'custom_title': custom_title}
|
||||
return _make_request(token, method_url, params=payload, method='post')
|
||||
|
||||
|
||||
def export_chat_invite_link(token, chat_id):
|
||||
method_url = 'exportChatInviteLink'
|
||||
payload = {'chat_id': chat_id}
|
||||
|
||||
Reference in New Issue
Block a user