Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

How to get username by id #440

Open
igorkrutilin opened this issue Dec 30, 2018 · 1 comment
Open

How to get username by id #440

igorkrutilin opened this issue Dec 30, 2018 · 1 comment

Comments

@igorkrutilin
Copy link

I save ids of all users of my bot in a database but how can I get their current username if I know id?

@afsantaliestra
Copy link

afsantaliestra commented Feb 13, 2019

Hello @igorkrutilin

You can retrieve all the info of a user with: bot.getChat(chat_id)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants