Raw.messages.ToggleBotInAttachMenu

Raw.messages.ToggleBotInAttachMenu

Enable or disable web bot attachment menu

messages.toggleBotInAttachMenu#69f59d69 flags:# write_allowed:flags.0?true bot:InputUser enabled:Bool = Bool;
export namespace Raw {
  export namespace messages {
    export class ToggleBotInAttachMenu {
      constructor(params: { writeAllowed?: boolean; bot: Raw.TypeInputUser; enabled: boolean }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x69f59d69

Property

  • writeAllowed : boolean or undefined

    Whether the user authorizes the bot to write messages to them, if requested by attachmenubot.requestWriteAccess

  • bot : Raw.TypeInputUser

    Bot id

  • enabled : boolean

    Toggle

Results

boolean