M
M
mefisto6612020-09-27 13:01:59
Python
mefisto661, 2020-09-27 13:01:59

How to implement tet-a-tet chat between users in a telegram bot?

Good afternoon!
I want to create a small social network using a telegram bot. Interested in the following:
How can I create a chat between users so that the third party to the chat is a bot?
- That is: the user receives a list of suitable people (other registered users), can start communication INSIDE the bot. Roughly speaking, I want to get chat.id, the same for 2 users and a bot. So that both users subscribed to this chat.id can see each other's messages and bot messages.

Is it even possible to do this? Or will you have to write messages on behalf of the bot, getting them from the database?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
Uno, 2020-09-27
@mefisto661

Can be forwarded
You can write on behalf of the bot
What you have come up with can be done really. Draw yourself a block diagram of all business processes and logic and start developing)

M
Mikhail Krostelev, 2020-09-28
@twistfire92

The bot cannot create group chats. You can only add it there.

R
rPman, 2020-09-28
@rPman

Try https://github.com/LonamiWebs/Telethon and report the result if it's not difficult.
Using the library, you can automate actions as a regular user, create groups and receive an invite link to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question