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

Telegram API - Channel User Count

I like to know how to use telegram API to query number of users that are in a particular channel. I have checked this but there is no example https://core.telegram.org/api I am not trying to create a bot, just looking to present stats about a…
mehwish
  • 199
  • 3
  • 15
1
vote
1 answer

How to create real-time push notifications from Telegram Chats to Web API?

I am new to Telegram development and am looking for a way to push real-time notifications from a current group that I am in to my own c# Web API. I was looking at the API docs, but confused about where should i start, Bot or Telegram APIs? Are there…
kob490
  • 3,177
  • 4
  • 25
  • 40
1
vote
1 answer

How to show/hide Telegram group messages only for group members, who carry out some action?

We have a group in Telegram and want to hide group messages from members before they carry out some action, for example enter email. After member enter his email, he can see all group messages, else see nothing. Is it possible with Telegram API or…
Evgeniy
  • 3,219
  • 5
  • 25
  • 40
1
vote
1 answer

JAVA Telegram bots api Error getting updates: Conflict: terminated by other long poll or webhook

I am using JAVA Telegram Bot API with Spring framework , I had a method in my HomeController and i had a class that handle all of the incoming messages from users. I got these errors in my spring log,then i got duplicated response from telegram bot…
1
vote
1 answer

How can i use Inlinekeyboard in webhook method telegram Bot ? c#

I use c# and telegram.bot library. When i use getUpdates method everything is ok but in webhook method not ok in GetUpdates method when i write below code in OnCallbackQuery event everything is ok and bot get answers private static void…
arman
  • 125
  • 1
  • 12
1
vote
1 answer

clear pending_update_count in Telegram Bot

I created a Telegram Bot and setwebhook to a ssl url. My developing language is Php. In testing time, every thing worked fine but after many hours and two or three users have been registered, I got bellow error on…
1
vote
1 answer

Telegram bot: ignore text-only messages

I want to reduce the number of requests from Telegram to my server and make the bot receive only messages with images, URLs or documents. I use webhook. If this is achievable, then how?
Orif Khodjaev
  • 1,080
  • 1
  • 13
  • 34
1
vote
4 answers

I set my telegram bot webhook, but do not send the telegram. Why?

I set webhook my telegram bot with setwebhook method but when I send a message in bot don't take this in my URL. https://api.telegram.org/bot/setwebhook?url=https://www.example.com/bot/temp.php In my host I use PHP language for take and…
1
vote
1 answer

Why have I no callback query when i use URL in inline_keyboard?

Why have I no callback query when I use URL in inline_keyboard in telegram bot? $keyboard = ['inline_keyboard'=>[[['text'=>'test','callback_data'=>'1', 'url'=>'https://t.me/']]]];
Raya Nasiri
  • 151
  • 2
  • 14
1
vote
1 answer

set web hook with self sign certificate for telegram bot

recently telegram added a new future to support the self sign certificates. now i want to set a web hook with my self sign certificate but i have no idea how. how can send my certificate to the telegram? thanks.
Mohammad
  • 2,724
  • 6
  • 29
  • 55
0
votes
0 answers

My Telegram Bot doesnt receive Channel Posts, only Group Chat and Private Messages (Webhook)?

I'm following this youtube tutorial. I am using a Google Apps Script to set up a Telegram Webhook, so that I can record all Private Messages, Group Messages, Channel Posts with the Bot into 1 Google Sheet. Bot is admin of both the Group Chat and…
0
votes
0 answers

Unexpected updates to Telegram bot running on Azure Function (.NET)

I created a telegram bot (for supergroups) on C# using Telegram.Bot library of the latest version for a moment 19.0.0. It's hosted on Azure Portal as Azure Function with Consumption plan type, so the function goes idle very often. Everything in the…
0
votes
0 answers

Java how to send multiple images to telegram bot

How to send multiple images to Telegram bot? I have a method that allows you to submit a single image and add a caption to that image. public void webhook(Update update) throws IOException { URL url = new…
0
votes
0 answers

java How to send multiple images to a chat using a telegram bot

How to send more than one image to a chat using a telegram bot in Java? I have a method that sends one image, but I don't know how to send multiple images in a group. Tell me how to do it? public void webhook(Update update) throws…
0
votes
1 answer

error 429 (too many requests) while trying to set up a webhook for a python telegram bot

I've created a telegram bot using PyTelegramBotAPI, and I'm trying to set up a webhook using flask. I'm trying to test my webhook using ngrok, but each time I fire up the bot I get an error saying I'm sending to many requests to the API.. This is…