Questions tagged [telegram-webhook]

Telegram webhooks allows to let a Telegram Bot be notified of new and changed messages and other events, using the HTTPS webhook callbacks.

What is it?

Telegram webhooks allows to let a Telegram Bot be notified of new and changed messages and other events, using the HTTPS webhook callbacks.

See also

257 questions
1
vote
1 answer

404 error using Telegraf webhook for a bot

I'm trying to make a Telegram bot working, and I'm using Telegraf.js. I've set up a webhook by adding a subdomain to my domain name with a default Apache VirtualHost. It's basically working but for a reason I've got a 404 error from the Telegram's…
1
vote
1 answer

Telegram bot. Private messages to group members

There is a public telegram chat. I want to make it so that when a user joins a chat group, the bot will send that user a private message. I checked the technical capabilities and realized that this cannot be done, but I could be wrong. To implement…
Steve Jobs
  • 57
  • 9
1
vote
1 answer

how to delete telegram service message after 60 sec sent by BOT

i want to delete service message sent by bot after 60 sec. bot already admin of the group, and i use php for it when i send https://api.telegram.org/bottoken/sendMessage?chat_id=chatid&text=hello this is bot it returns nothing as it sent from…
priyabrata
  • 179
  • 15
1
vote
1 answer

Why do I get the following error when I try to edit message in group: ETELEGRAM: 400 Bad Request: message to edit not found?

Edit functionality works properly in private chat, but doesn't work in group chat. What might be the reason of that behaviour? I am getting the following error: Unhandled rejection Error: ETELEGRAM: 400 Bad Request: message to edit not found at…
Dzhakhar Ukhaev
  • 305
  • 1
  • 10
1
vote
1 answer

Add button to forward message from channel in Telegram

I'm not quite sure it's possible but probably someone did that. Is it possible to use bot for appending button to message user forwarded to bot? I mean: Admin posted a message in his channel. Admin forwarded message to bot (assume bot added in…
matterai
  • 3,246
  • 4
  • 17
  • 29
1
vote
0 answers

How to Improve the Responsiveness of Inline Keyboards

I've recently been working on a Telegram bot for automating data entry on a particularly annoying spreadsheet that some of my friends just don't like interacting with. So I thought I'd make them a nice telegram bot, so we can all push data to the…
1
vote
0 answers

Bot with TelegramApi javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

Hi I'm building a telegram bot that works, but whenever I try it on my laptop company it throws me this error: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find…
1
vote
1 answer

How to get File_ID of an Image Generated by Bot?

I'm currently generating an image buffer and sending it to a group using ctx.replyWithPhoto({ source: myBuffer, filename: "image.png" }); I'm wanting to reuse this photo to send later and I figured I could use Telegrams file_id for this, but I…
1
vote
1 answer

Why does Telegram give me an empty POST request on the webhook?

I followed these steps: Registered a bot with BotFather. Send a post request for the webhook (https://api.telegram.org/bot[BOTID]/setWebhook) with the URL being https://example.com/myscript.php Double check with getWebhookInfo and it showed it is…
Mark
  • 16,906
  • 20
  • 84
  • 117
1
vote
1 answer

catching event of deleting a groupe-chat in telegram bot api

I'm rellay happy with that community here. I found many answers in different cases. But this time I don't find one. So maybe someone can help me? I'm working on a telegram bot using php and webhook updates. I track if my bot is added in a group chat…
1
vote
0 answers

How do I access the chat_id and save it for further execution?

I have created a notification bot, which updates the temperature of the room in telegram group when someone in the group initiates with /start command, so it saves the chat_id of the initiator and notifies in the group. Is there any possibility,…
1
vote
1 answer

Including intermediate certificates from Letsencrypt in Nginx SSL setup

I test my SSL setup using the SSL Labs test which says that certificate chain is incomplete (no other problems otherwise). That seems about right since I can't get Telegram webhooks to work (great explanation in the Telegram webhook guide). As…
tsotsi
  • 683
  • 2
  • 8
  • 20
1
vote
0 answers

Getting Channel/chat entities

I want that some one can add my bot to his channel. For that I want to save the webhook (chat.id) of the channel in a database. My code: async with bot.conversation(chat.id) as conv: await conv.send_message("Which channel you want add?…
MaTok
  • 353
  • 3
  • 16
1
vote
0 answers

How to handle array of messages Telegram bot API

I’m creating a telegram bot with Telegram API webhook. I need to handle several messages in a specific order, like this: client: /order bot: product name? client: product name bot: authorization code? client: code bot: order complete What I have…
1
vote
0 answers

Get updates to telegram channel comments to the message

We can get message from user in telegram by getupdates api. But for comments in telegram channel message which is introduced by telegram recently I don't get any response. Anyway to do it?