Questions tagged [telegram]

Telegram is a cross-platform cloud-based instant messenger with a focus on security. Use this tag for questions about interacting with Telegram, including use of its official API.

Main features

Messaging

It was the main feature of Telegram. It allows you to send messages to users who have the contacts and we know the nickname.

Groups

The groups are conversations between more than two users, I can reach up to 200 users. Each member of a group can add users, change the name of the group or avatar. Exceeded 200 members, the group becomes a "Supergroup". The supergroup can get to 100,000 users.

Channels

The channels are groups that do not have a limit of users . The peculiarity is that only administrators can write to the channel.

Bots

Telegram Bots are programmed accounts without a phone number. they can not initiate a conversation with a real user. The bot API provides methods to interact with users including sending and editing messages, custom keyboards, commands. (API Documentation)

5905 questions
11
votes
4 answers

How To Obtain Username, First Name Or Last Name Of A Telegram User With Python-Telegram-Bot?

I'm Creating A Telegram Bot Using Python-Telegram-Bot I Know That update.message.chat_id Returns The User's Chat ID, But I Need To Know How To Get User's Username Or First Name And/Or Last Name. I've Found This On Telegram's Documentation But I…
Sadegh Alirezaie
  • 343
  • 1
  • 3
  • 17
11
votes
2 answers

Read telegram channel messages

So I need to read all new messages of one specific channel that I'm in (not as an admin). I searched for different client apis (.NET, PHP, nodejs) but none of them helped. Do you have any idea how I could do this? Thanks!
Digot
  • 187
  • 1
  • 3
  • 8
11
votes
4 answers

Keystore file D\Telegram-master\TMessagesProj\config\release.keystore not found for signing config 'debug'

I downloaded new version of Telegram. When run it,This error has shown: Keystore file D\Telegram-master\TMessagesProj\config\release.keystore not found for signing config 'debug'. How fix it?
AndroidDev
  • 701
  • 3
  • 9
  • 21
11
votes
2 answers

How Telegram makes the rich preview?

Anybody knows how Telegram makes the rich preview?? It would be very useful to learn about it for a development I am making. It is a server side features, so I think the code is not available. Isn't it?
Jose A Lopez Pastor
  • 337
  • 2
  • 4
  • 16
10
votes
2 answers

How to delete queue updates in telegram api?

I'm trying to delete messages from /getUpdates in telegram API but I didn't know how.. I tried to use /deleteMessage https://api.telegram.org/bot/deleteMessage?chat_id=blahblah&message_id=BlahBlah But it didn't delete message from API…
Osama Kurdi
  • 103
  • 1
  • 5
10
votes
3 answers

How to make that when you click on the text it was copied pytelegrambotapi

I am writing a telegram to the bot. I ran into such a problem. I need the bot to send a message (text) when clicked on which it was copied (as a token from @BotFather)
DanDyFun
  • 141
  • 1
  • 1
  • 5
10
votes
2 answers

Prevent a Telegram bot from being added to any group or channel (allow adding it to whitelisted groups/channels)

As far as I read the Telegram Bot API's docs, Telegram do not limit the calls to your webhook callback in any way. I am creating a Telegram Bot that will be available only for groups and channels that I will whitelist. I can filter out the messages…
10
votes
2 answers

Telegram bot initiate conversation with a user

I am writing a Telegram bot, to simplify the issue let's say you can ask the bot questions in a channel and it replies to you in private. When the bot receives the command it takes the chat_id of the user from: update.message.from_user.id But when…
Uri Shalit
  • 2,198
  • 2
  • 19
  • 29
10
votes
2 answers

How do I use Telegram API without a bot?

I don't need a reply bot. I want to just make a read-only call to read the channel history. Probably I need †he method https://core.telegram.org/method/messages.getHistory but documentation https://core.telegram.org/api#getting-started does not even…
Nakilon
  • 34,866
  • 14
  • 107
  • 142
10
votes
4 answers

telegram bot SSL error: SSL error {error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed}

I use let's encrypt free SSL (my host provider support it by default), I checked my site at sslshopper.com (the only warning was: The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link…
Mohammad Salehi
  • 565
  • 1
  • 12
  • 33
10
votes
3 answers

How can I remove inline keyboard after click?

My bot sends a pick with 2 inline callback buttons: like / dislike. After a user clicks on like or dislike button, I want this inline keyboard to disappear. This is how I make a dislike button dislike_button =types.InlineKeyboardButton…
Alex Nikitin
  • 841
  • 1
  • 10
  • 29
10
votes
2 answers

Link in telegram bot so the user can call a bot command

I'm writing a telegram bot but I have a question. For now my bot will search for an image based on user request, but if I the bat found more than one image I want to send to the user a list of image with a link for search that iamge. Eg. /command…
Davide Martelli
  • 179
  • 1
  • 3
  • 9
10
votes
1 answer

How do I send a message to Telegram that includes a button that prompts the user to forward the message?

Many Telegram bots (e.g., @youtube) have a button you can click on to forward messages sent by the bot. When the user clicks on this button, Telegram opens a contact list that lets the user choose who to forward the message to. How can I send a…
Thomas Johnson
  • 10,776
  • 18
  • 60
  • 98
10
votes
1 answer

Telegram geolocation

I have an idea to use a telegram bot for food ordering from a smartphone. So, you have a menu, prices, there is a payment gateway. This part seems clear to me. I was wondering if there any way to get a geolocation information inside telegram? So…
B.I.
  • 706
  • 3
  • 9
  • 19
10
votes
2 answers

Node Telegram bot api, make chain conversation between user

I have started to write bot logic for telegram by using this module I can create simple question and answer logic like this: bot.onText(/\/start/, function(msg, match){ bot.sendMessage(msg.chat.id, "Hello this is great bot"); }); When user types…
Mr.D
  • 7,353
  • 13
  • 60
  • 119