skip to Main Content

I’d like to contact a user by his id instead of his username

https://t.me/ID_USER like https://t.me/732189738218

is it possible?

2

Answers


  1. No sir unfortunately you can’t do that. Telegram Bot API doesn’t return phone number. You should either use Telegram API methods instead or ask it explicitly from the user. You cannot get "friends" of a user as well.

    Login or Signup to reply.
  2. yes, you can.
    you can call SendMessage method and specify chat_id parameter.
    also you can add contact by chat_id. [please see Raw API Docs]
    but you can’t search/get full user info. public fields only!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search