Add user to channel automatically when user asks

前端 未结 3 1121
刺人心
刺人心 2021-02-14 05:49

I want to make a very simple project that does this:

An user (let\'s call him John) opens a Telegram chat with my bot, and inputs this:

User John: /join channel1

3条回答
  •  感动是毒
    2021-02-14 06:20

    The bot ability is limited. It can only send and receive messages in a chat conversation and collect some information about other chat participants. It can not start a new conversation or other client functionality.

    For automate your task, you should use telegram API. There are some clients such as telegram-cli that use the telegram api and have high level methods.

    Other clients:

    • tgl (C)
    • kotlogram (Java)
    • telethon (Python)
    • webogram (Web)
    • MadelineProto (PHP)
    • TLSharp (C#)
    • pytg (Python wrapper for telegram-cli)

提交回复
热议问题