Questions tagged [telegram-api]

The API for the Telegram messaging service. More information on the API and the TDLib library (for the AP available for multiple programming languages), can be found at .

237 questions
30
votes
6 answers

my.telegram.org sends an ERROR when I want to create an API id/hash in API development tools section

I'm trying to get my API id/hash to create some bots for telegram , but in the API developmen tools section , when I enter my bot informations( name , shortname...) and click on create to get the results , I recieve an error : my.telegram.org says…
aboss
  • 520
  • 1
  • 4
  • 14
24
votes
1 answer

How can I send a message to someone with telegram API using my own account

It's awesome how google something can be annoying when you can't find the right words. I found a million answers on how about to create a Telegram Bot to send and receive messages, and it's easy as write maybe five code lines. But how about managing…
Leonardo Rick
  • 680
  • 1
  • 7
  • 14
17
votes
4 answers

Creating an application that will listen to a telegram channel

First of all please note that this is not about creating a bot. My goal is to create an application that will simply listen to any number of telegram channels that the account I will provide it with is subscribed to and retrieve all messages sent to…
PentaKon
  • 4,139
  • 5
  • 43
  • 80
8
votes
1 answer

Telegram bot api : issue with GIF upload/download size

Faced with issue, when i am trying to send GIF to my bot, but bot can't access to original size of image. Seems like telegram servers converting it to mp4 (it is a good idea, looks fine) and when i trying to download it - it always looks like a…
Nigrimmist
  • 10,289
  • 4
  • 52
  • 53
7
votes
2 answers

Get last message/s from Telegram channel with Python

I'm using the python-telegram-bot library to write a bot in Python that sends URLs into a channel where the bot is administrator. Now, I would like to have the bot reading, let's say, the last 5 messages (I don't really care about the number as I…
6
votes
4 answers

Where to find the Telegram Api Key

I am trying to find the Api Key for Telegram but I cannot find it. Where do I find it on the website? If I use the Api Id, I get the error Incorrect Token Format in the C# Console Application.
Sven Ronnlund
  • 127
  • 1
  • 1
  • 8
5
votes
1 answer

Telegram bot payments - show receipt after successful payment

I have a Telegram bot that processes payments. The payments work as they should, however, I have not been able to show receipt after a successful payment. The current behavior is: user clicks on PAY button, fills the card information and pays for…
druskacik
  • 2,176
  • 2
  • 13
  • 26
5
votes
1 answer

Is it possible in Telegram to copy to clipboard by button?

I'm writing a telegram bot that will communicate with user and send him url as a result. I want to implement inline button which will do copy to clipboard function for user. I want it because copying text by context menu is a bit longer and not that…
egvo
  • 1,493
  • 18
  • 26
4
votes
0 answers

telegram bot payment BOT_PRECHECKOUT_TIMEOUT

When paying in the bot (via payments Sberbank test and Yukassa test (didn't try other acquirers)), the bot responds to update with pre_checkout_query using answerPreCheckoutQuery and receives the response {"ok":true,"result":true}. But the…
4
votes
3 answers

How verify request of webhook are from Telegram?

I have a Telegram bot that is set to work with Telegram webhook mechanism but how trust requests and know if they are from Telegram? base on Telegram docs I find out there is two way: limit them to telegam ip (this is dirty, if for some reason…
4
votes
1 answer

telegram api, can i launch video live streamings?

I'm so bit confused about Telegram API/TlDB options. In the telegram docs, says that with the telegram-api you can do (programmatically) everything that can do with the app as a user. I used telethon (python) library to do some tests, but i struggle…
4
votes
2 answers

telegram api for USER rather than BOT

So I heard you can create USER bots on TG, as in BOT-like bots but in USER accounts rather than BOT accounts. I've been searching for ages, cannot find any libs related to MTProto with good documentation on how one actually goes about doing this. I…
Tran
  • 59
  • 1
  • 5
3
votes
1 answer

Is it possible to send premium-only custom emojis with a Telegram Client?

Recently, Telegram released a new feature - Custom Emojis. They instantly became available to users, but there are no instructions on how to send them using a Telegram bot. Is it even possible within the API? And specifically on Telegraf?
123253
  • 51
  • 3
3
votes
1 answer

How to use GetRepliesRequest call in Telethon

There is api method messages.getReplies in Telegram API and the equivalent of the same is functions.messages.GetRepliesRequest in the Telethon. But this method is not returning the expected replies/comments to the post. Instead, it returns multiple…
John Byro
  • 674
  • 3
  • 13
3
votes
1 answer

How to change my avatar in WTelegramClient

Currently I am using WTelegramClient library on C#, how can I change my telegram account avatar, I can't find instructions in EXAMPLES
HTL CO
  • 41
  • 6
1
2 3
15 16