Skip to content

getBotUsername

Eric Damian edited this page Feb 17, 2021 · 1 revision

getBotUsername Method:

Use this method to get your actual bot username.

Example

from python_telegram_api import telegram_bot_api

bot = telegram_bot_api.TelegramBotApi('xxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy')
print(bot.getBotUsername())

>>> myTestBot
Clone this wiki locally