I
I
IRT2020-05-04 21:59:28
Python
IRT, 2020-05-04 21:59:28

How to throw a die in Telethon (sendDice)?

The Telegram Bot API has a sendDice method that allows you to randomly throw a die or dart into the chat.
https://core.telegram.org/bots/api#senddice
It is clear how to call it with an HTTP request to the API on behalf of the bot.
How can I call this method through Telethon, given that I am logged into Telegram as a user, not a bot?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question