Home > Backend Development > Golang > Is it possible to get group messaging using telegram API without using bots?

Is it possible to get group messaging using telegram API without using bots?

王林
Release: 2024-02-09 11:09:09
forward
1028 people have browsed it

是否可以使用 telegram API 获取消息群聊而不使用机器人?

php Xiaobian Yuzai, are you wondering if you can use the Telegram API to get group message chats without using a bot? The answer is yes. Telegram API provides a variety of methods that allow developers to directly obtain group chat messages. By using the Telegram API's getChat method, you can get the details of a specific group chat, including the member list and message history. In addition, you can also use the getUpdates method to get the latest group chat messages. Therefore, you can easily get messages from Telegram group chats without using a bot.

Question content

I have a question about telegram API.

I have read the documentation at core.telegram.org.

As far as I understand, most APIs are about bots to manage group channels or post messages. But my use case is to use the API to get messages from any chat of a user authenticated using my application, reply to the chat with the user account as shown below. Can it be done using telegram API? Thanks.

Workaround

No, there is no way to retrieve message data directly from a group chat using the Telegram API without using a bot.

The Telegram API requires authentication and uses a bot token to access chat messages and perform actions on behalf of the bot. Bots are specifically designed to interact with users and groups, allowing developers to create automated services and applications within the Telegram platform.

The above is the detailed content of Is it possible to get group messaging using telegram API without using bots?. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template