telegram-bot Questions

3

Solved

I'm working on telethon download_media and _download_document methods for downloading media from telegram. My code is something like this: from telethon import TelegramClient api_id = 12345 api_ha...
Try asked 8/2, 2021 at 11:5

5

Solved

I'm writing a Telegram bot and I'm using the official bot API. I've got a webhook server that handles requests and sends a 200 OK response for every request. Before the server stops, the webhook i...
Wilmoth asked 29/7, 2015 at 17:28

2

Solved

Is there a limit to the number of bots a user can create on telegram? I'm considering "selling custom bots" to people as a service, and would like to avoid having my clients handle techni...
Forficate asked 13/10, 2017 at 9:14

3

I want to create a Bot that automatically keeps posting in a Telegram channel.I am using Node.js. I am using Telegraf.js wrapper for Telegram API. You may even suggest any other suitable wrapper fo...
Demit asked 25/11, 2018 at 13:41

4

Solved

I have able to make a bot very easily by reading the docs but Jobqueue is not working as per it is written. The run_daily method uses a datetime.time object to send the message at a particular time...

3

Solved

When developing bot for Telegram is there any way to get user timezone? Date field in Message object contains UNIX timestamp only. I want to create bot sending some messages an fixed time of day to...
Birgitbirgitta asked 26/4, 2016 at 17:8

4

Solved

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. ...
Nubianubian asked 6/12, 2016 at 2:16

1

I'm using telegram bot api for implementing an inline bot. For sending query result to the user, I'm using answerInlineQuery method in this way. This is just an example for showing a photo that exi...
Jaeger asked 19/7, 2018 at 17:11

11

Solved

I have the following code in Python to send a message to myself from a bot. import requests token = '123456789:ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI' method = 'sendMessage' myuserid = 1949275XX resp...
Greegree asked 15/12, 2016 at 23:10

17

Solved

I use curl to update my public channels. This kind of syntax: curl -X POST "https://api.telegram.org/bot144377327:AAGqdElkZ-77zsPRoAXXXXXXXXXX/sendMessage" -d "chat_id=@MyChannel&amp...
Hupp asked 22/11, 2015 at 19:5

3

Solved

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 ...
Sphenic asked 23/2, 2018 at 13:56

3

Solved

I´m developing a telegram bot in c#. Using the class TelegramBotClient in Telegram.Bot library. I want to send a message with SendTextMessageAsync using HTML option. In the official documentatio...
Sou asked 7/8, 2019 at 12:8

2

I successfully open a web app using an in-line button from my Telegram bot. When the "work" is complete in the web app, it persists the data to a DB via an API call and then closes itself...
Footrope asked 5/9, 2022 at 23:7

2

Solved

I'm trying to create a simple Telegram Bot using the python-telegram-bot library, but i can't align a dictionary with the default "{0:<20} {1}".format(key, value) idea. Let me give u a...
Elaelaborate asked 7/5, 2019 at 20:59

4

Solved

I am currently developing several Telegram bots but I want to keep all of them in the same git repository. The issue is that on the other hand, I want to run them as separate processes. Since I'm ...
Predictory asked 19/9, 2017 at 18:25

3

I wrote a bot which asks your name and writes it on a photo and sends it to you and it works. But the problem is when there is more than one user on the bot It doesn't work and crashes and I wante...
Evars asked 24/10, 2017 at 10:47

2

Solved

I want to send a message from Telegram Bot to user with parse_mode 'HTML' . I use node.js with telegram.bot.api. But I've got an error I've tried to write a code without parse_mode='HTML'. And it ...
Enuresis asked 28/5, 2019 at 14:19

3

Solved

Is there any way that can handle deleted message by user in one-to-one chat or groups that bot is member of it ? there is method for edited message update but not for deleted message .
Tenorrhaphy asked 28/1, 2018 at 7:49

3

Solved

I would like to understand the limits that Telegram bot API is imposing on message sending. I know that currantly you cannot send more than 30 messages to differant users. I have many bots runnin...
Pluviometer asked 27/8, 2017 at 13:4

3

Solved

How could I create a three-dashes menus on a Telegram bot, similarly to what they do to the Jobs bot? It should be similar to this: How do we call this kind of menu?
Leyba asked 13/9, 2021 at 7:28

4

Solved

I'm trying to send a message in a channel with a bot, using Telegram API's send_photo() method. It takes a caption parameter (type String) but I can't format it through parse_mode='HTML' parameter....
Horton asked 12/5, 2019 at 22:33

12

Solved

How to obtain user chat_id in Telegram bot API? The documentation says: Integer | Unique identifier for the message recipient — User or GroupChat id
Centri asked 26/6, 2015 at 17:16

7

Solved

I am using the telepot python library, I know that you can send a message when you have someone's UserID(Which is a number). I wanna know if it is possible to send a message to someone without havi...

5

Solved

I have this keyboard in my telegram bot: When i click the right arrow i get this new keyboard: the code is this: $url = $GLOBALS["website"]."/sendMessage?chat_id=".$chatID."&text=''&amp...
Pryor asked 16/9, 2017 at 15:52

2

Whenever I run index.js in nodejs I get this error message. Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/sync' is not defined by "exports" in D:\Scuola\5f_Informatca\Tpsi...
Crusted asked 14/4, 2022 at 13:15

© 2022 - 2024 — McMap. All rights reserved.