Api class
You can use an Api class to send a message to another users and more
Last updated
You can use an Api class to send a message to another users and more
Last updated
If you want to send a message to another user, call api method for a different bot, or get data from the , you can use Api class methods
To get Api class in controller, use @GetApi
property decorator, and Api class as type
User ID or channel ID (string or number)
Required
Message you want to send (you can use MessageSend class too)
Required
Keyboard
Optional
Optional
You can use any method from the Answer class in the Api class
If you want to call some api method for different bot, use bot.to
method