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
3
votes
1 answer

Telegram sends lots of duplicates

I know this is a duplicate of Telegram sends duplicate POST JSON requests to webhook and Telegram sends duplicate POST JSON requests to webhook. However, there wasn't any adequate answer to this question, so: I have a PHP app handling webhook…
3
votes
1 answer

Can't upload audio to telegram Bad Request: failed to get HTTP URL content

I have working url to mp3, and I am trying to send audio to Telegram by this url. It works from time to time, but most of time it gives error "A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response…
3
votes
2 answers

How to get message info by ID [Telegram API]

I'm writing bot for telegram to gather some stats from group chat. I need to get info about every message (from the beginning of chat). I know how can i do it, but it's a quite bad idea. I can use forwardMessage method, but i need second acc for it…
3
votes
1 answer

Unable to use Let's Encrypt cert in Telegram bot webhook (Self-Signed cert works fine)

I am trying to setup my Telegram bot webhook using a Let's Encrypt certificate but Telegram keeps saying verification_failed. Browsers, however, are totally fine with new Let's Encrypt certificate. My self-signed certificate is currently working…
Poulad
  • 1,149
  • 1
  • 12
  • 22
3
votes
3 answers

How can i get file_path of telegram bot

I have a telegram bot webhook message like { "update_id":236420475, "message":{ "message_id":26577, "from":{ "id":xxxxxxxx, "first_name":"DB", "last_name":"Ks", "username":"xxxxxxxx" …
joe
  • 365
  • 1
  • 5
  • 16
3
votes
1 answer

Telegram bot webhook and amazon lambda

I've tried to create my first telegram bot hosting the code as an amazon lambda instance, i suppose i should return something to the webhook 'cause it keep saying "Wrong response from the webhook: 502 Bad Gateway". Here is part of my code: def…
2
votes
0 answers

Integrate between Shelly and Telegram via Webhook

I have tried to integrate between Shelly and Telegram. In Telegram there is an option called webhook that mean , if Telegram bot received an message that message will automatically move to another server : To open my Shelly relay I can send a POST (…
vtable
  • 302
  • 2
  • 15
2
votes
0 answers

Webhook from Django 4.1 to python-telegram-bot 20.0a2

I use the python-telegram-bot 20.0a2 library and Django 4.1 The bot runs by main.py script: if __name__ == "__main__": asyncio.run(main()) Inside of the main script I also run uvicorn in the same ascynhronous context as Application instance #…
2
votes
1 answer

AWS Lambda processes requests from telegram bot sequentially and doesn't scale

I am building a Telegram bot in C#, deployed with AWS Lambda. Telegram bot and Lambda are connected via a webhook and work fine. I need to schedule deleting a bot's message in a few minutes without blocking the bot. It must keep accepting and…
2
votes
0 answers

How to implement Telegram bot as a widget on your website?

I'm trying to create some sort of live chat widget, but with a Telegram bot instead of a real person on the other side. I don't know if it is possible, but ideally, there is a chat window that can be implemented on a website, and establishes a new…
Pjotr Mega
  • 33
  • 3
2
votes
0 answers

Telegram bot webhook returns user identifier id as null

I am working on a telegram bot and set up a webhook to store chat id of users into my laravel app's DB. I was getting the chat id previously but today, I getting NULL. I am using ngok for https to work with webhooks. When webhook is deleted and I…
2
votes
0 answers

Telegram webhook doesn’t work. Wrong response from the webhook: 403 Forbidden

I try to set up Telegram webhook to server which is located at glitch.com. I have such code: const express = require("express"); const app = express(); const TelegramBot = require('node-telegram-bot-api') const bot = new…
2
votes
1 answer

How to prevent my bot from entering into a loop?

I created a functionality in my bot that allows to ping other computers, when the user pings more than 60 times the bot takes a long time to do it, and I think it does not respond to Telegram with an http 200 code, so Telegram sends it again the…
2
votes
6 answers

Telegram Bot sometimes requires User Authentication

When I access to my telegram-bot, after some time, it requires user authentication with the text: "Stand by... Hi there! Before We Can Continue We Need To Verify That You're a REAL User" When this message appears it seems session is closed, and the…
Sahu
  • 183
  • 2
  • 9
2
votes
1 answer

How to check if message was deleted?

How I can check using telegram bot api if message of user (not bot) was deleted.
yaschk1
  • 67
  • 7
1 2
3
17 18