send all contact to other - query-string

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

Sorry, but it isn't possible.
Please read Telegram Bots API documentation.

Related

Is it possible to get all my chat ids in telegram bot api?

I'm writing a bot that will send the same message for many people I've ever communicated in telegram. So I need to get all my old chat_id's.
All I found is just to store chat_id when I receive a new message as here Retrieve all chat ids using Telegram bot
But it doesn't fit me. If is it possible, please tell me, I'd really apreciate it!
It's not possible, as there is no such method listed in the Bot API Docs.

Telegram bots not responding

I have created some new telegram bots to test their functionality. I haven't used them before, but I cannot seem to get them to respond to any commands?
Has anyone come across this issue before?
You have created a telegram bot on telegram. However..
Did you set any webhooks for the bot?
You should set a webhook/polling and write a backend to make it response to your queries.
For reference you can start from here
https://core.telegram.org/bots/api
set the webhook for your bot.
Ex:
http://api.telegram.org/bot<TOKEN>/setWebhook?url=<ENDPOINT>

Is it possible use the Calendar Api to send sms messages to the other person when adding a meeting?

Is it possible use the Calendar Api to send sms messages to the other person when adding a meeting?
My Client's client want to send SMS messages via Bambika as a meeting reminder. Is it possible? I have been Googling but not found anything that helps. The Calendar API doesn't have a field for Telephone numbers. Any pointers please? Thanks

what can be done by a telegram chat ID?

if someone find my telegram chat ID (instead of my phone number or username), what can do with that?
is it dangerous?!
is it a big deal that someone can find my ID? should I worry about it?
If someone with a (user)bot wants to send you a message, they can do that via the userID only. But only if they have "seen" you. Seeing you is considering their client to receive a message from you, be it in a private message or group.
Bots can only send you a message if you have started it in a private chat, otherwise they can only send you a message in a group they share with you.
So there is no real risk of people knowing your ID.

how to check if a user started a bot in telegram or not?

I'm developing a bot in telegram , here is my problem:
I have some posts in my channel which some inline_keyboards are attached to them. when a user press the button , next events happen in a bot and some messages show to a user. if user has been started the bot before , there is no problem , if not I have error. how should I check the user is member of my bot or not to handle this problem???
try to use sendMessage() API and send a message to user. After that telegram will response a status tell you whether success or not.
if started bot receive receive is ok,
if not started bot receive is nothing.
{"ok":true,"result":{"message_id":9999,"from":{"id":00000000,"is_bot":true,"first_name":"mybot","username":"mybot"}}}
like that, good luck.
There is no way to check if bot can talk to user or not without send message.
You can use url with https://t.me/Bot?start=some_data format, and you will receive /start some_data, please try this link yourself.
The problem with this approach is that if a lot of users do the same, telegram starts to throttle your callbacks :( ... it would be so much easier if you could just read that information somewhere...

Resources