SafeW|API文档
  • 🤖Bot API
    • Introduction
    • getMe
    • getUpdates
    • sendMessage
    • sendPhoto
    • sendVideo
    • sendDocument
    • forwardMessage
    • editMessageText
    • deleteMessage
    • getChat
    • leaveChat
    • getChatMemberCount
    • banChatMember
    • sendVoice
    • sendMediaGroup
    • sendAudio
  • setWebhook
  • deleteWebhook
  • getWebhookInfo
  • deleteMessages
  • editMessageReplyMarkup
  • copyMessage
  • promoteChatMember
  • setChatPermissions
  • restrictChatMember
  • setMyDefaultAdministratorRights
  • setChatAdministratorCustomTitle
  • getChatMember
  • setChatTitle
  • getChatAdministrators
  • getMyCommands
  • setMyCommands
  • createChatInviteLink
  • editChatInviteLink
  • revokeChatInviteLink
  • approveChatJoinRequest
  • declineChatJoinRequest
  • answerCallbackQuery
Powered by GitBook
On this page

setMyDefaultAdministratorRights

Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success.

Parameter
Type
Required
Description

rights

ChatAdministratorRights

Optional

A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared.

for_channels

Boolean

Optional

Pass True to change the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be changed.

PreviousrestrictChatMemberNextsetChatAdministratorCustomTitle