help.DismissSuggestion

class pyrogram.raw.functions.help.DismissSuggestion

Dismiss a suggestion, see here for more info ».

Details:
  • Layer: 223

  • ID: F50DBAA1

Parameters:
  • peer (InputPeer) – In the case of pending suggestions in channels, the channel ID.

  • suggestion (str) – Suggestion, see here for more info ».

Returns:

bool

TL Schema

help.dismissSuggestion#f50dbaa1
peer:InputPeer
suggestion:string

= Bool

Parameter Tree

DismissSuggestion
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── suggestionstring

Example

await app.invoke(
    DismissSuggestion(
        peer=await app.resolve_peer(chat_id),
        suggestion="text",
    )
)