📄️ Bots
Every bot is an instance of the Client class. You can create a new bot by calling the Client constructor and passing it the bot token and the bot description.
📄️ Events
SwiBots is an event-driven framework. This means that the framework is designed to respond to events. Events are the primary way that SwiBots interacts with the outside world. Events are generated by the network, by the user, or by the framework itself. Events are handled by handlers.
📄️ Handlers
Handlers are functions that are called when an event is triggered. Handlers are registered with the calling add_handler funciton of app or using decorators.
📄️ Decorator Handlers
If you don't want to use the add_handler method, you can use decorators to register handlers to the app.
📄️ Bot Context
The BotContext is the object that is passed to the handler functions. It contains the information of the bot and the event that triggered the handler.
📄️ Event filters
Filters are used to filter events before they are passed to the handler. Filters are used to filter events by their type, by the user that triggered the event, by the community, by the channel, etc.
📄️ Getting higher upload speed
Default Parameters