Git Product home page Git Product logo

hanagram's Issues

The bot doesn't seem to work

Hi!
This is what happened.

  • I created a bot
  • I started the server with my bot key
  • As soon as I added the bot to a group chat the bot started throwing this error on a loop

File "PATH/hanagram-master-J0wtyKA-/lib/python3.8/site-packages/telepot/loop.py", line 67, in run_forever
self._update_handler(update)
File "/PATH/hanagram-master-J0wtyKA-/lib/python3.8/site-packages/telepot/loop.py", line 153, in
collectloop.input_queue.put(_extract_message(update)[1]))
File "PATH/python3.8/site-packages/telepot/loop.py", line 103, in _extract_message
key = _find_first_key(update, ['message',
File "/PATH/hanagram-master-J0wtyKA-/lib/python3.8/site-packages/telepot/init.py", line 68, in _find_first_key
raise KeyError('No suggested keys %s in %s' % (str(keys), str(d)))
KeyError: "No suggested keys ['message', 'edited_message', 'channel_post', 'edited_channel_post', 'callback_query', 'inline_query', 'chosen_inline_result', 'shipping_query', 'pre_checkout_query'] in {'update_id': 782411227, 'my_chat_member': {'chat': {'id': -1001599719614, 'title': 'Tutorial de bots', 'type': 'supergroup'}, 'from': {'id': , 'is_bot': False, 'first_name': , 'username': }, 'date': 1640007287, 'old_chat_member': {'user': {'id': , 'is_bot': True, 'first_name': 'hanabi', 'username': }, 'status': 'left'}, 'new_chat_member': {'user': {'id': 5027176420, 'is_bot': True, 'first_name': 'hanabi', 'username': }, 'status': 'member'}}}"

If you can confirm that this issue is also present on your end then I would like to help you solving this issue. If you can't reproduce this error then I would like to know which telepot version you are using.

My Telepot version: 12.7

๐Ÿ˜„

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.