G
G
gohellp2022-02-18 18:49:07
Node.js
gohellp, 2022-02-18 18:49:07

Does Telegram have the ability to send a message via a webhook, or something similar?

Task: using the VK bot to send posts to the server's Discord channel and to the Telegram channel.

I figured out the discord: I send a message through a webhook client, so I would like to know: does telegraf have similar features, and if not, how can I send a message through this library inside another bot?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
shurshur, 2022-02-19
@gohellp

The Telegram API itself solves this problem, for example, sending a text message looks like this:

https://api.telegram.org/botТОКЕН/sendMessage?chat_id=-12345&text=Сообщение

Sending photos with /sendPhoto , sending videos with /sendVideo , etc.

A
Alexander Karabanov, 2022-02-18
@karabanov

telegram webhook

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question