The Channels API provides a lightweight way to interact with channels. If you just want to send messages to a channel, it’s better if you use this.
Create a new
Chatobject which points to the channel. You need to provide the channel name, prefixed with
@, and your bot’s API key. Please refer to the Preparation section if you don’t know how to get it.
- name (str) – The channel name.
- api_key (str) – Your bot’s API key.
The corresponding Chat object.