简体   繁体   English

如何从电报聊天中保存邮件并使用您自己的帐户发送其他邮件?

[英]How to save a message from a telegram chat and send other messages with your own account?

I want to build a code that save a certain telegram message, from a user , as an input (ex: "David: Hello how are you doing? ") and be able to send a certain message back, with my own telegram account (ex: "Me: I'm fine! How are you? ") 我想构建一个代码,用来保存来自用户的某个电报消息作为输入(例如:“大卫: 你好,你好吗? ”)并能够用我自己的电报帐户发回某个消息(例如:“我: 我很好!你好吗? ”)

Is there a way I can do this in python without using a telegram bot ? 有没有办法在不使用电报机器人的情况下在python中执行此操作? Because I dont think bots can actually connect to your own telegram account and send messages 因为我不认为机器人实际上可以连接到您自己的电报帐户并发送消息

不幸的是,实现这种结果的唯一方法是创建自己的自定义Telegram应用程序 ,看看https://core.telegram.org/api上的API文档

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

相关问题 如何在 Telegram 中读取和保存消息,然后使用 Python 发送消息 - How to Read and Save Messages in Telegram and then Send message Using Python 如何从Telegram上的群聊中获取消息? - How to get messages from a group chat on Telegram? 如何使用我自己的帐户通过电报 API 向某人发送消息 - How can I send a message to someone with telegram API using my own account 使用python电报机器人开始私人聊天时如何发送消息 - how to send message when start private chat with python telegram bot 如何使用 Python 在 Telegram 中从我的姓名(我的帐户,而不是机器人)发送消息? - How to send a message from my name (my account, not the bot) in Telegram using Python? 如何将来自电报频道的消息保存为变量 - How to save message from telegram channel as variable 将传入消息从电报转发到另一个聊天室 - Forward incoming messages from Telegram to another chat 如何删除电报聊天中的所有消息与python - how to delete all messages in telegram chat with python 如何从 StreamListener 处理程序(twitter)向电报发送消息? tweepy 和电视马拉松 - How to send messages to telegram from the StreamListener handler (twitter)? tweepy & telethon 如何删除电报聊天中的所有消息? (蟒蛇,电报.ext) - How delete all message in telegram chat? (python, telegram.ext)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM