Python-telegram-bot: get user_id by username

Created on 5 Apr 2020  路  3Comments  路  Source: python-telegram-bot/python-telegram-bot

is there any way to get user_id by username in telegram?

question

All 3 comments

No. You'd need to save that on your side, if you encounter a user with a username.

and by phone number?

@YHporkar https://core.telegram.org/bots/api#getchat

PTB can only wrap, what the Telegram API offers 馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bvanrijn picture bvanrijn  路  4Comments

mzsalam picture mzsalam  路  5Comments

xoancosmed picture xoancosmed  路  3Comments

rspadim picture rspadim  路  5Comments

leandrotoledo picture leandrotoledo  路  4Comments