I
I
IML2020-10-29 11:09:01
Bots
IML, 2020-10-29 11:09:01

Tape telegram groups on the site, how to implement?

Good afternoon, the question is the following. I have a website and also have a telegram group. I want to make sure that all messages from the group immediately appear on the site, there is also the possibility of registering from the site through telegram authorization, I would also like to make sure that, for example, every three thousand messages (or less)are somehow saved in pages.
I understand that I may have formulated the question incorrectly, googled, I can’t find manuals for creating such a telegram bot that I need, I would be grateful if you throw links to materials that will help implement this. I can write a handler in php, but due to inexperience and lack of teachers, I can’t quite catch up with how to get data from telegrams Thank you

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lesha, 2020-10-29
@hydrugz

so that all messages from the group immediately appear on the site

Telegram still knows how to display individual messages from the supergroup - https://t.me/habrcom/11276
At the bottom there is a code for inserting into the site
<script async src="https://telegram.org/js/telegram-widget.js?12" data-telegram-post="habrcom/11276" data-width="100%"></script>

- where habrcom/ 11276 is the message identifier.
You will need to learn how to display them on the site in a stream in the form of a dialogue and update them as messages arrive. The second will be your bot with admin rights in the chat and your server with the database
the ability to register from the site through telegram authorization

https://core.telegram.org/widgets/login
You will not find manuals where it will be painted and chewed "click here - a backend bot will be created".

M
MorganDusty, 2020-10-29
@MorganDusty

Have you tried using the TELEGRAM API? As far as I know, it is not possible to display messages)

A
Anton Shamanov, 2020-10-30
@SilenceOfWinter

https://core.telegram.org/method/channels.getMessages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question