W
W
websteam2016-02-12 09:51:12
PHP
websteam, 2016-02-12 09:51:12

Is it possible to write to a bot in a Telegram channel?

I am making a script for sending links to news in the channel through a bot . Here now the question is, can the bot write in the telegram channel ? If so, are there any examples of what needs to be done with the bot so that it can write to telegrams?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2016-02-12
@miraage

EASY WEASY
https://github.com/TelegramBot/Api

V
Vlad Zhivotnev, 2016-02-12
@inkvizitor68sl

They can definitely, and receive messages in the chat, and respond there.
In the API docs, emnip is described as.

D
Defman21, 2016-02-12
@Defman21

Instead of chat_id, specify the name of the channel, for example "@my_channel"
https://core.telegram.org/bots/api#sendmessage

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question