tech-fever / nezha_telegram_bot Goto Github PK
View Code? Open in Web Editor NEWdemo: https://t.me/nezhaChecker_bot 多语言哪吒监控telegram查询机器人 Multilingual Nezha monitoring telegram query bot
License: GNU General Public License v3.0
demo: https://t.me/nezhaChecker_bot 多语言哪吒监控telegram查询机器人 Multilingual Nezha monitoring telegram query bot
License: GNU General Public License v3.0
比我写的强多了,感谢提供本项目
老实说老哥啥都弄好了,就是差个单用户多面板,请问能考虑添加这个功能么
如題,按照docker 方式安裝後/all (/search /id)沒反應,只有加入面版正常/help /info /id /add /token /url 可以用
看了下LOG: 好像是請求有問題
2023-12-11T12:52:14.535620750Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
2023-12-11T12:52:14.535623175Z raise BadRequest(message)
2023-12-11T12:52:14.535625438Z telegram.error.BadRequest: Query is too old and response timeout expired or query id is invalid
2023-12-11T12:52:14.822200424Z 2023-12-11 20:52:14,822 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while handling the error.
2023-12-11T12:52:14.822391555Z 2023-12-11 20:52:14,822 - utils.handler - ERROR - Exception while handling an update:
2023-12-11T12:52:14.822397837Z Traceback (most recent call last):
2023-12-11T12:52:14.822400652Z File "/usr/local/lib/python3.9/site-packages/telegram/ext/utils/promise.py", line 96, in run
2023-12-11T12:52:14.822403588Z self._result = self.pooled_function(*self.args, **self.kwargs)
2023-12-11T12:52:14.822406022Z File "/opt/nezha_telegram_bot/utils/handler.py", line 309, in button
2023-12-11T12:52:14.822408417Z query.answer()
2023-12-11T12:52:14.822410691Z File "/usr/local/lib/python3.9/site-packages/telegram/callbackquery.py", line 166, in answer
2023-12-11T12:52:14.822413086Z return self.bot.answer_callback_query(
2023-12-11T12:52:14.822415350Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 133, in decorator
2023-12-11T12:52:14.822417764Z result = func(*args, **kwargs)
2023-12-11T12:52:14.822441168Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 2710, in answer_callback_query
2023-12-11T12:52:14.822443703Z result = self._post('answerCallbackQuery', data, timeout=timeout, api_kwargs=api_kwargs)
2023-12-11T12:52:14.822446127Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 298, in _post
2023-12-11T12:52:14.822448482Z return self.request.post(
2023-12-11T12:52:14.822450797Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 361, in post
2023-12-11T12:52:14.822453262Z result = self._request_wrapper(
2023-12-11T12:52:14.822455536Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
2023-12-11T12:52:14.822457971Z raise BadRequest(message)
2023-12-11T12:52:14.822460275Z telegram.error.BadRequest: Query is too old and response timeout expired or query id is invalid
2023-12-11T12:52:15.109747926Z 2023-12-11 20:52:15,109 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while handling the error.
2023-12-11T12:52:15.109979834Z 2023-12-11 20:52:15,109 - utils.handler - ERROR - Exception while handling an update:
2023-12-11T12:52:15.109986817Z Traceback (most recent call last):
2023-12-11T12:52:15.109989472Z File "/usr/local/lib/python3.9/site-packages/telegram/ext/utils/promise.py", line 96, in run
2023-12-11T12:52:15.109992097Z self._result = self.pooled_function(*self.args, **self.kwargs)
2023-12-11T12:52:15.109994511Z File "/opt/nezha_telegram_bot/utils/handler.py", line 331, in button
2023-12-11T12:52:15.109997066Z check_keyboard(update, context)
2023-12-11T12:52:15.109999360Z File "/opt/nezha_telegram_bot/utils/handler.py", line 163, in check_keyboard
2023-12-11T12:52:15.110001905Z update.callback_query.edit_message_text(text=text, reply_markup=reply_markup)
2023-12-11T12:52:15.110019678Z File "/usr/local/lib/python3.9/site-packages/telegram/callbackquery.py", line 216, in edit_message_text
2023-12-11T12:52:15.110022223Z return self.message.edit_text(
2023-12-11T12:52:15.110024818Z File "/usr/local/lib/python3.9/site-packages/telegram/message.py", line 2136, in edit_text
2023-12-11T12:52:15.110027243Z return self.bot.edit_message_text(
2023-12-11T12:52:15.110029516Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 133, in decorator
2023-12-11T12:52:15.110049706Z result = func(*args, **kwargs)
2023-12-11T12:52:15.110053162Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 2778, in edit_message_text
2023-12-11T12:52:15.110055597Z return self._message(
2023-12-11T12:52:15.110057851Z File "/usr/local/lib/python3.9/site-packages/telegram/ext/extbot.py", line 202, in _message
2023-12-11T12:52:15.110060245Z result = super()._message(
2023-12-11T12:52:15.110062490Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 339, in _message
2023-12-11T12:52:15.110064854Z result = self._post(endpoint, data, timeout=timeout, api_kwargs=api_kwargs)
2023-12-11T12:52:15.110067228Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 298, in _post
2023-12-11T12:52:15.110069593Z return self.request.post(
2023-12-11T12:52:15.110071827Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 361, in post
2023-12-11T12:52:15.110074222Z result = self._request_wrapper(
2023-12-11T12:52:15.110076496Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
2023-12-11T12:52:15.110078920Z raise BadRequest(message)
2023-12-11T12:52:15.110081165Z telegram.error.BadRequest: Message to edit not found
2023-12-11T12:52:15.399764613Z 2023-12-11 20:52:15,399 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while handling the error.
2023-12-11T12:52:15.400014816Z 2023-12-11 20:52:15,399 - utils.handler - ERROR - Exception while handling an update:
2023-12-11T12:52:15.400026448Z Traceback (most recent call last):
2023-12-11T12:52:15.400032469Z File "/usr/local/lib/python3.9/site-packages/telegram/ext/utils/promise.py", line 96, in run
2023-12-11T12:52:15.400038079Z self._result = self.pooled_function(*self.args, **self.kwargs)
2023-12-11T12:52:15.400043209Z File "/opt/nezha_telegram_bot/utils/handler.py", line 309, in button
2023-12-11T12:52:15.400048499Z query.answer()
2023-12-11T12:52:15.400090519Z File "/usr/local/lib/python3.9/site-packages/telegram/callbackquery.py", line 166, in answer
2023-12-11T12:52:15.400098204Z return self.bot.answer_callback_query(
2023-12-11T12:52:15.400103734Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 133, in decorator
2023-12-11T12:52:15.400125114Z result = func(*args, **kwargs)
2023-12-11T12:52:15.400129262Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 2710, in answer_callback_query
2023-12-11T12:52:15.400134331Z result = self._post('answerCallbackQuery', data, timeout=timeout, api_kwargs=api_kwargs)
2023-12-11T12:52:15.400138980Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 298, in _post
2023-12-11T12:52:15.400154270Z return self.request.post(
2023-12-11T12:52:15.400157886Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 361, in post
2023-12-11T12:52:15.400161703Z result = self._request_wrapper(
2023-12-11T12:52:15.400166392Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
2023-12-11T12:52:15.400171241Z raise BadRequest(message)
2023-12-11T12:52:15.400175550Z telegram.error.BadRequest: Query is too old and response timeout expired or query id is invalid
2023-12-11T12:52:15.686913943Z 2023-12-11 20:52:15,686 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while handling the error.
2023-12-11T12:52:29.603227739Z 2023-12-11 20:52:29,602 - utils.handler - ERROR - Exception while handling an update:
2023-12-11T12:52:29.603249721Z Traceback (most recent call last):
2023-12-11T12:52:29.603262905Z File "/usr/local/lib/python3.9/site-packages/telegram/ext/utils/promise.py", line 96, in run
2023-12-11T12:52:29.603265590Z self._result = self.pooled_function(*self.args, **self.kwargs)
2023-12-11T12:52:29.603267984Z File "/opt/nezha_telegram_bot/utils/handler.py", line 331, in button
2023-12-11T12:52:29.603270441Z check_keyboard(update, context)
2023-12-11T12:52:29.603272704Z File "/opt/nezha_telegram_bot/utils/handler.py", line 163, in check_keyboard
2023-12-11T12:52:29.603275089Z update.callback_query.edit_message_text(text=text, reply_markup=reply_markup)
2023-12-11T12:52:29.603277544Z File "/usr/local/lib/python3.9/site-packages/telegram/callbackquery.py", line 216, in edit_message_text
2023-12-11T12:52:29.603279968Z return self.message.edit_text(
2023-12-11T12:52:29.603282202Z File "/usr/local/lib/python3.9/site-packages/telegram/message.py", line 2136, in edit_text
2023-12-11T12:52:29.603284627Z return self.bot.edit_message_text(
2023-12-11T12:52:29.603286871Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 133, in decorator
2023-12-11T12:52:29.603289225Z result = func(*args, **kwargs)
2023-12-11T12:52:29.603291469Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 2778, in edit_message_text
2023-12-11T12:52:29.603293864Z return self._message(
2023-12-11T12:52:29.603296139Z File "/usr/local/lib/python3.9/site-packages/telegram/ext/extbot.py", line 202, in _message
2023-12-11T12:52:29.603298523Z result = super()._message(
2023-12-11T12:52:29.603300757Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 339, in _message
2023-12-11T12:52:29.603313241Z result = self._post(endpoint, data, timeout=timeout, api_kwargs=api_kwargs)
2023-12-11T12:52:29.603315675Z File "/usr/local/lib/python3.9/site-packages/telegram/bot.py", line 298, in _post
2023-12-11T12:52:29.603318010Z return self.request.post(
2023-12-11T12:52:29.603320224Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 361, in post
2023-12-11T12:52:29.603322598Z result = self._request_wrapper(
2023-12-11T12:52:29.603324892Z File "/usr/local/lib/python3.9/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
2023-12-11T12:52:29.603327287Z raise BadRequest(message)
2023-12-11T12:52:29.603329531Z telegram.error.BadRequest: Message to edit not found
2023-12-11T12:52:29.891775789Z 2023-12-11 20:52:29,891 - telegram.ext.dispatcher - ERROR - An uncaught error was raised while handling the error.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/telegram/ext/utils/promise.py", line 96, in run
self._result = self.pooled_function(*self.args, **self.kwargs)
File "/opt/nezha_telegram_bot/utils/handler.py", line 455, in search_command
send_message = update.message.reply_text
AttributeError: 'NoneType' object has no attribute 'reply_text'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.