Giter Club home page Giter Club logo

efb-qq-plugin-iot's Introduction

EH Forwarder Bot

Python >= 3.6

GitHub Discussions

Telegram

Documentation

Tests status

PyPI release

Downloads per month

Codacy grade

Translate this project

Banner

Codename EH Forwarder Bot (EFB) is an extensible message tunneling chat bot framework which delivers messages to and from multiple platforms and remotely control your accounts.

Read the Documentation. For tips, tricks and community contributed articles, see project wiki.

Getting Started

  1. Install the framework:

    pip3 install ehforwarderbot
  2. Install modules from the module repository.
  3. Enable and set up modules:

    efb-wizard
  4. Launch EFB:

    ehforwarderbot

Feel like contributing?

Everyone is welcomed to raise an issue or submit a pull request, just remember to read through and follow the contribution guideline before you do so.

License

EFB framework is licensed under GNU Affero General Public License 3.0 or later versions:

EH Forwarder Bot: An extensible message tunneling chat bot framework.
Copyright (C) 2016 - 2020 Eana Hufwe, and the EH Forwarder Bot contributors
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Translation support

EFB supports translated user interface prompts, by setting the locale environmental variable (LANGUAGE, LC_ALL, LC_MESSAGES or LANG) to one of our supported languages. Our documentation is also available in different languages. You can help to translate this project into your languages on our Crowdin page.

efb-qq-plugin-iot's People

Contributors

0honus0 avatar milkice233 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

wzekin

efb-qq-plugin-iot's Issues

不能发送图片了,内有日志

2022-01-05T04:19:47.550719611Z     Message is not sent. (update: {'message': {'supergroup_chat_created': False, 'caption_entities': [], 'chat': {'type': 'supergroup', 'title': 'ckck', 'id': -1001742747057}, 'channel_chat_created': False, 'message_id': 448, 'photo': [{'width': 42, 'file_size': 1167, 'height': 90, 'file_id': 'AgACAgUAAx0CZ-A1sQACAcBh1Rxh6ca5tKr4JnyIKsoyvcLLrAAC2q8xG-S_qFagZDyvaGMN7gEAAwIAA3MAAyME', 'file_unique_id': 'AQAD2q8xG-S_qFZ4'}, {'width': 148, 'file_size': 14085, 'height': 320, 'file_id': 'AgACAgUAAx0CZ-A1sQACAcBh1Rxh6ca5tKr4JnyIKsoyvcLLrAAC2q8xG-S_qFagZDyvaGMN7gEAAwIAA20AAyME', 'file_unique_id': 'AQAD2q8xG-S_qFZy'}, {'width': 369, 'file_size': 60622, 'height': 800, 'file_id': 'AgACAgUAAx0CZ-A1sQACAcBh1Rxh6ca5tKr4JnyIKsoyvcLLrAAC2q8xG-S_qFagZDyvaGMN7gEAAwIAA3gAAyME', 'file_unique_id': 'AQAD2q8xG-S_qFZ9'}, {'width': 591, 'file_size': 82794, 'height': 1280, 'file_id': 'AgACAgUAAx0CZ-A1sQACAcBh1Rxh6ca5tKr4JnyIKsoyvcLLrAAC2q8xG-S_qFagZDyvaGMN7gEAAwIAA3kAAyME', 'file_unique_id': 'AQAD2q8xG-S_qFZ-'}], 'entities': [], 'date': 1641356385, 'delete_chat_photo': False, 'new_chat_members': [], 'new_chat_photo': [], 'group_chat_created': False, 'from': {'id': 1237524619, 'username': 'lowking0415', 'language_code': 'zh-hans', 'last_name': '•᷄ࡇ•᷅', 'is_bot': False, 'first_name': 'ㅤ'}}, 'update_id': 319418645}, exception: sendFriendPic() got an unexpected keyword argument 'fileMd5')
2022-01-05T04:19:47.550728135Z Traceback (most recent call last):
2022-01-05T04:19:47.550731844Z   File "/usr/lib/python3.9/site-packages/efb_telegram_master/master_message.py", line 393, in process_telegram_message
2022-01-05T04:19:47.550735753Z     slave_msg = coordinator.send_message(m)
2022-01-05T04:19:47.550739719Z   File "/usr/lib/python3.9/site-packages/ehforwarderbot/coordinator.py", line 113, in send_message
2022-01-05T04:19:47.550743840Z     return slaves[msg.deliver_to.channel_id].send_message(msg)
2022-01-05T04:19:47.550747447Z   File "/usr/lib/python3.9/site-packages/efb_qq_slave/__init__.py", line 80, in send_message
2022-01-05T04:19:47.550762183Z     return self.QQClient.send_message(msg)
2022-01-05T04:19:47.550766765Z   File "/usr/lib/python3.9/site-packages/efb_qq_plugin_iot/IOTBot.py", line 185, in send_message
2022-01-05T04:19:47.550769927Z     self.iot_send_image_message(chat_type, chat_uid, msg.file, msg.text)
2022-01-05T04:19:47.550773013Z   File "/usr/lib/python3.9/site-packages/efb_qq_plugin_iot/IOTBot.py", line 378, in iot_send_image_message
2022-01-05T04:19:47.550776098Z     self.action.sendFriendPic(user=chat_uin, picBase64Buf=image_base64, fileMd5=md5_sum, content=content)
2022-01-05T04:19:47.550779548Z TypeError: sendFriendPic() got an unexpected keyword argument 'fileMd5'

在对QQ群组使用 /update_info 时可能会报错

在Telegram 中的错误提示是
Error occurred while update chat details.
'group'

在终端中的错误提示为:
19:49:09,226 [ERROR]: efb_telegram_master.chat_binding (chat_binding.update_group_info; chat_binding.py:949) Unknown error caught when querying chat. Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/cachetools/cache.py", line 44, in getitem return self.__data[key] KeyError: 'group' During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/chat_binding.py", line 891, in update_group_info chat = self.chat_manager.update_chat_obj(channel.get_chat(chat_uid), full_update=True) File "/usr/local/lib/python3.9/dist-packages/efb_qq_slave/init.py", line 92, in get_chat
return self.QQClient.get_chat(chat_uid) File "/usr/local/lib/python3.9/dist-packages/efb_qq_plugin_iot/IOTBot.py", line 290, in get_chat group_info = self.get_group_info(chat_uin, no_cache=False)
File "/usr/local/lib/python3.9/dist-packages/efb_qq_plugin_iot/IOTBot.py", line 264, in get_group_info
return self.info_dict['group'].get(group_id, None)
File "/usr/local/lib/python3.9/dist-packages/cachetools/ttl.py", line 83, in getitem return cache_getitem(self, key)
File "/usr/local/lib/python3.9/dist-packages/cachetools/cache.py", line 46, in getitem
return self.missing(key)
File "/usr/local/lib/python3.9/dist-packages/cachetools/cache.py", line 73, in missing
raise KeyError(key)
KeyError: 'group'

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.