Channels API¶
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.
-
botogram.
channel
(name, api_key)¶ Create a new
Chat
object 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.Parameters: - name (str) – The channel name.
- api_key (str) – Your bot’s API key.
Returns: The corresponding Chat object.
Return type: