Skip to main content

edit_message

AsyncMethod
This is a method of the BotProtocol class in the protocols module.
Edit an existing message.

Signature

async def edit_message(channel_id: str, message_id: str, content: Union[str, Dict[str, Any]]) -> BotMessage

Parameters

channel_id
str
required
Channel containing the message
message_id
str
required
ID of message to edit
content
Union
required
New message content

Returns

Returns
BotMessage
The edited message