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

How to send request to telegram for use telegram api

I have a app using the telegram API. And I have an api_id and an api_hash. Now I want to register a user to his telegram account (using the API). I read this page. It said for example for auth.sendCode to use this code: auth.sentCode#efed51d9…
user8278502
2
votes
0 answers

PHP Telegram Bot (editMessageText & editReplyMarkup)

I am Kevin and these days I'm having problems with the functions editMessageText and editReplyMarkup. This is my code and I don't know where is the problem. This is my code:
2
votes
1 answer

Handle telegram webhook data in python 3

I made chatbot using this framework pyTelegramBotAPI and set webhook to my chatbot in Telegram. I use CherryPy for this. Everything works fine. But I can't handle data which user sends to my bot. I just get notification that user send something. How…
2
votes
0 answers

Getting POST data from Telegram bot with Python on Hook.io

I am trying to make a simple echo bot on Telegram with Python, hosted as a microservice on hook.io. Problem: Cannot parse the POST data from the Hook object. I tried the JavaScript method from here in another bot, worked fine. Tried to make the same…
cogito404
  • 21
  • 3
2
votes
1 answer

Set Heroku like webhook for a Telegram Bot

how can I set Heroku like webhook for a Telegram Bot written using python-telegram-bot? What I have to add in the code? Thank you.
2
votes
1 answer

Create a new Telegram bot

I'm writing a Wordpress plugin using a Telegram Bot to send notification to a channel. I can send a command to my already created BOT in this way: https://api.telegram.org/bot[token]/[command] Is it possible to create a new BOT by code? e.g. sending…
2
votes
1 answer

updates in telegram bot switch()

I made this code in my .php file where I set webHook that works good. $token = "my token"; $website = "https://api.telegram.org/bot" . $token . "/"; $updates = file_get_contents("php://input"); $updates = json_decode($updates, true); $text =…
2
votes
2 answers

How can I read posts from any random channels in Telegram?

I am trying to get all the messages from Telegram channel and display them in an ASP.NET web page but I didn't find any telegram API so far. Is it even possible to read from any random channels in the Telegram?How and where can I find the proper…
mahboub_mo
  • 2,908
  • 6
  • 32
  • 72
1
vote
1 answer

Is there a way to provide additional data to Notion's OAuth flow?

I am building a Telegram bot (webhook implemented) to interact with Notion API. I need to link Telegram and Notion users between each other. My Authorization URL from Notion's integration page looks like…
gettmure
  • 29
  • 4
1
vote
1 answer

My session ID keeps changing when my webhook receives updates from the telegram bot API

I have a xampp local server (for testing my telegram bot with php) with ngrok that open my server to the internet. When i try to call my webhoook.php file on the ngrok url (and on the localhost) my session ID is always the same (as it should be).…
1
vote
1 answer

Telegram Bot Webhook - Connection Refused (Golang)

I have configured a Telegram bot to use Webhooks according to the following configuration: OS: Ubuntu Server: Apache2 Virtual Host: Sucessfully linked to domain Listening on port 8843 Ports 443, 8843 all open with ufw allow Webhook: Set to…
1
vote
1 answer

HTTP POST using Telegram Webhook

I have an endpoint that I run using curl command curl -X POST https://example.com/control -d "channel=X&turn=XXX&id=XXXXXX&auth_key=XXXXX" I want to bind between Telegram Webhook and that POST , so each time my Telegram bot will get a message it…
vtable
  • 302
  • 2
  • 15
1
vote
0 answers

Invalid webhook response (302 Found) from Telegram bot in PHP (MVC)

Good day! I have an MVC site in PHP. The essence of the problem is that when receiving a webhook response, Telegram sends an error message - Wrong response from the webhook: 302 Found. The webhook was successfully registered using the link…
1
vote
1 answer

How can I know how many users have joined through invite link of telegram group which I have created?

I have created a link of telegram group using createChatInviteLInk using my bot present in that group now i want see how many users have joined through particular link programtically
1
vote
1 answer

Open URL with ASCII characters (emojis) on it as parameters with urllib

I'm making a telegram bot that sends messages to a Channel, everything works fine until I try to send a message with an ASCII character (like an emoji) inside the URL message parameter, whenever I try to run something like this: botMessage =…
Juan π
  • 13
  • 2