bots.AllowSendMessage

class pyrogram.raw.functions.bots.AllowSendMessage

Allow the specified bot to send us messages

Details:
  • Layer: 227

  • ID: F132E3EF

Parameters:

bot (InputUser) – The bot

Returns:

Updates

TL Schema

bots.allowSendMessage#f132e3ef
bot:InputUser

= Updates

Parameter Tree

AllowSendMessage
└── bot → InputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_id → long
│ └── access_hash → long
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_id → int
└── user_id → long

Example

await app.invoke(
    AllowSendMessage(
        bot=await app.resolve_user(chat_id),
    )
)