简体   繁体   English

如何使用 Python 在 Telegram 中从我的姓名(我的帐户,而不是机器人)发送消息?

[英]How to send a message from my name (my account, not the bot) in Telegram using Python?

I already have the main script.我已经有了主脚本。 Now I only need the method that will send a certaing message from my account (my name) to another person automatically.现在我只需要从我的帐户(我的名字)自动向另一个人发送确定消息的方法。 Is it possible to send messages that way?可以这样发送消息吗?

You would have to use the Telegram Database Library , which is a set of APIs you can use to control your user's actions via HTTP requests.您必须使用Telegram Database Library ,这是一组 API,可用于通过 HTTP 请求控制用户的操作。 Then you'll use the sendMessage class to send a message as yourself.然后,您将使用 sendMessage class 以您自己的身份发送消息。 The Get Started page pretty much has everything you need for your project. 入门页面几乎包含您项目所需的一切。

Source: https://core.telegram.org/#tdlib-build-your-own-telegram资料来源: https://core.telegram.org/#tdlib-build-your-own-telegram

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 电报机器人 Api / Python:试图通过我的电报机器人发送语音消息 - Telegram Bot Api / Python: Trying to send voice message via my telegram bot 如何让我的 python 电报机器人每天在特定时间发送消息? - how to make my python telegram bot to send message at certain time every day? 如何使用我的电报机器人使用他们的用户名向某人发送消息 - How can I send a message to someone with my telegram bot using their Username 如何使用 python-telegram-bot 发送消息 - How to send message using python-telegram-bot 如何使用带有 python selenium 的电报机器人发送消息 - How I can send message using telegram bot with python selenium 如果Python脚本异常,如何从Telegram机器人发送消息? - How to send a message from a Telegram bot in case of python script exception? 如何使用我自己的帐户通过电报 API 向某人发送消息 - How can I send a message to someone with telegram API using my own account 如果机器人在 Telegram 中发送消息,我的 python 脚本如何反应? - how can my python script react if a bot sends a message in Telegram? 如何使用python持续检查传入我的电报机器人的消息? - How to persistently check for messages incoming to my telegram bot using python? 我无法向电报机器人用户发送消息,但我自己 - I can not send message to telegram bot users but my self
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM