messages.ToggleBotInAttachMenu
- class pyrogram.raw.functions.messages.ToggleBotInAttachMenu
Enable or disable web bot attachment menu »
- Details:
Layer:
223ID:
69F59D69
- Parameters:
bot (
InputUser) – Bot IDenabled (
bool) – Togglewrite_allowed (
bool, optional) – Whether the user authorizes the bot to write messages to them, if requested by attachMenuBot.request_write_access
- Returns:
bool
TL Schema
messages.toggleBotInAttachMenu#69f59d69
flags:#
write_allowed:flags.0?true
bot:InputUser
enabled:Bool
= Bool
Parameter Tree
ToggleBotInAttachMenu
├── write_allowed →
true (optional)├── bot →
InputUser│ ├──
InputUserEmpty│ ├──
InputUserSelf│ ├──
InputUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ └──
InputUserFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long└── enabled →
BoolExample
await app.invoke(
ToggleBotInAttachMenu(
write_allowed=None,
bot=await app.resolve_user(chat_id),
enabled=True,
)
)