Giter Site home page Giter Site logo

telegrammemobot's Introduction

telegrammemobot's People

Contributors

okhaibo avatar onewdd avatar qazxcdswe123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

telegrammemobot's Issues

小趴菜求助

研究半天,创建了个机器人。后面不知道怎么进行了,能出个教程吗?

ERROR

2023-01-28 14:07:51,944 - telegram.ext.updater - ERROR - Error while bootstrap del webhook: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /boxxxxxxxxxxxx:xxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxx/deleteWebhook (Caused by ConnectTimeoutError(<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f9751bb01c0>, 'Connection to api.telegram.org timed out. (connect timeout=5.0)'))
2023-01-28 14:07:51,944 - telegram.ext.updater - WARNING - Failed bootstrap phase; try=8 max_retries=-1

[功能需求] 使用点赞代替 "200 OK"

image

想得效果如上面所示。
客户端上点击一个message时,tg会弹出一个框来点赞。
不清楚bot能不能干这个事,猜测应该是可以得,花了些时间阅读了api,暂时没找到对应函数。

思路是想用一个小标记代替 “200 OK” 文本回复,把对话框变得更简洁一些。

Bot返回错误 Error:

使用docker启动,这两天发现向bot发送任何消息都返回 Error: ,vps上查看log显示以下内容:

2023-07-31 05:52:01,521 - root - ERROR - Error:  in send_text_memo
2023-07-31 05:52:01,530 - root - ERROR - Error:  in send_text_memo
2023-07-31 05:54:00,786 - root - ERROR - Error:  in send_text_memo

图文问题

当一条消息是包含了图片和文字时,似乎只会存储图片,消息的文字并不会显示。并且图片在资源库中是可以看到的,然后再主页看不到,包括第三方的安卓、苹果软件上。

支持多个TG用户

如题,查看了源码,发现目前只支持单个tg用户

import os

id_list = []
id_str = os.environ.get('ID')
if id_str:
    id_list = [int(x.strip()) for x in id_str.split(',')]
else:
    pass

#if user id in list, then continue the context

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.