0

I want to send many or all my telegram contacts by query string to some one else, how can I do ?

this is a code for sending one contact:

https://api.telegram.org/bot<Token>/sendContact?chat_id=....&phone_number=......&first_name=.....

but is there a way to send all or too many contacts in one request?

Thanks

Salmaan
  • 39
  • 1
  • 5
  • The query string is very limited and browser dependent see details [here](http://stackoverflow.com/a/812962/3029422) – Ionut Apr 10 '17 at 20:18
  • a better way is to export the contacts using the [contacts.getContacts](https://core.telegram.org/method/contacts.getContacts) method – Ionut Apr 10 '17 at 20:19
  • what about Php, are Php codes could do that? – Salmaan Apr 10 '17 at 21:04
  • what is your use case? could you please describe what are you trying to do? – Ionut Apr 11 '17 at 00:45
  • When you share contact by a bot to others, telegram send back the User Id, so you can collect many phone numbers and it's related id, with this two property you could find phone number of any unknown user. – Salmaan Apr 11 '17 at 05:32

1 Answers1

1

Sorry, but it isn't possible.

Please read Telegram Bots API documentation.

MarcoBuster
  • 1,145
  • 1
  • 13
  • 21