platform#
- class besser.bot.platforms.platform.Platform[source]#
Bases:
ABC
The platform abstract class.
A platform defines the methods the bot can use to interact with a particular communication channel (e.g. Telegram, Slack…) for instance, sending and receiving messages.
This class serves as a template to implement platforms.
- Attributes:
running (bool): Whether the platform is running or not
- _abc_impl = <_abc._abc_data object>#
- abstract initialize()[source]#
Initialize the platform. This function is called right before starting the platform.