Telethon转发消息没有特定的单词
我正在使用一个将消息从某个频道转发到我正在使用的任何其他频道的电报机器人,但是我希望它不用单词转发这些消息,例如,消息以“鲜花”结束,我希望该机器人转发没有“花”一词的消息。
@BotzHubUser.on(events.NewMessage(incoming=True, chats=FROM))
async def sender_bH(event):
for i in TO:
try:
await BotzHubUser.send_message(
i,
event.message
)
I am using a telegram bot that forwards messages from a certain channel to any other channel I am on, but I want it to forward these messages without a word, for example the message ends with "flowers", I want the bot to forward the message without the word "flowers".
@BotzHubUser.on(events.NewMessage(incoming=True, chats=FROM))
async def sender_bH(event):
for i in TO:
try:
await BotzHubUser.send_message(
i,
event.message
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如 docs 尝试:尝试:
As said in the docs try :