OriginProtocol / telegram-moderator

Telegram bot for controlling spam, logging, and more
MIT License
112 stars 50 forks source link

Error causes bot to delete admin's messag #24

Closed mikeshultz closed 4 years ago

mikeshultz commented 4 years ago

Seen with a forwarded message that was pinned to the channel by an admin:

155 <190>1 2020-05-10T19:42:10.212729+00:00 app worker.1 - - Error[292]: 'NoneType' object has no attribute 'from_user'
176 <190>1 2020-05-10T19:42:10.212766+00:00 app worker.1 - - Error on line 439 AttributeError 'NoneType' object has no attribute 'from_user'
138 <190>1 2020-05-10T19:42:13.572402+00:00 app worker.1 - - Expecting value: line 1 column 1 (char 0)
1237 <190>1 2020-05-10T19:42:13.580390+00:00 app worker.1 - - 2020-05-10T12:42:13 777000 (b'Telegram None') : b"\xf0\x9f\x8e\x8a At Origin we're grateful for the support we get from our loyal fans and community. If you would like to help us build and improve Origin, there are three main ways you can get involved:\n\n1. If you know how to read and write more than two languages, including English, you can be part of our team of translators at: https://crowdin.com/profile/OriginProtocol\n\n2. We are looking for people who are interested in testing Origin Deals. If you are planning to make a purchase on Origin Deals and would like to provide your feedback to one of our engineers in a 1-on-1 sessions please fill in the following form: https://docs.google.com/forms/d/e/1FAIpQLSeflisy6u6GG6r2YMPutyGl57eJvZ-cUjZAYzye_i-WGOa8qw/viewform?usp=send_form\n\n3. For all the developers out there, we invite you to participate in our open-source engineering process! Everyone is welcome. All you need to do is introduce yourself in our public Discord engineering channel, find an open issue in our monorepo and tell us that you would like to solve it. With that done you can merge your first pull request!"
1209 <190>1 2020-05-10T19:42:13.581265+00:00 app worker.1 - - ❌ HIDE FORWARDED: b"\xf0\x9f\x8e\x8a At Origin we're grateful for the support we get from our loyal fans and community. If you would like to help us build and improve Origin, there are three main ways you can get involved:\n\n1. If you know how to read and write more than two languages, including English, you can be part of our team of translators at: https://crowdin.com/profile/OriginProtocol\n\n2. We are looking for people who are interested in testing Origin Deals. If you are planning to make a purchase on Origin Deals and would like to provide your feedback to one of our engineers in a 1-on-1 sessions please fill in the following form: https://docs.google.com/forms/d/e/1FAIpQLSeflisy6u6GG6r2YMPutyGl57eJvZ-cUjZAYzye_i-WGOa8qw/viewform?usp=send_form\n\n3. For all the developers out there, we invite you to participate in our open-source engineering process! Everyone is welcome. All you need to do is introduce yourself in our public Discord engineering channel, find an open issue in our monorepo and tell us that you would like to solve it. With that done you can merge your first pull request!"
125 <190>1 2020-05-10T19:42:14.277485+00:00 app worker.1 - - Error[292]: Chat_id is empty
142 <190>1 2020-05-10T19:42:14.277527+00:00 app worker.1 - - Error on line 492 BadRequest Chat_id is empty
138 <190>1 2020-05-10T19:43:04.136559+00:00 app worker.1 - - Expecting value: line 1 column 1 (char 0)
1236 <190>1 2020-05-10T19:43:04.149970+00:00 app worker.1 - - 2020-05-10T12:43:04 [123456789] (b'[CENSORED]') : b"\xf0\x9f\x8e\x8a At Origin we're grateful for the support we get from our loyal fans and community. If you would like to help us build and improve Origin, there are three main ways you can get involved:\n\n1. If you know how to read and write more than two languages, including English, you can be part of our team of translators at: https://crowdin.com/profile/OriginProtocol\n\n2. We are looking for people who are interested in testing Origin Deals. If you are planning to make a purchase on Origin Deals and would like to provide your feedback to one of our engineers in a 1-on-1 sessions please fill in the following form: https://docs.google.com/forms/d/e/1FAIpQLSeflisy6u6GG6r2YMPutyGl57eJvZ-cUjZAYzye_i-WGOa8qw/viewform?usp=send_form\n\n3. For all the developers out there, we invite you to participate in our open-source engineering process! Everyone is welcome. All you need to do is introduce yourself in our public Discord engineering channel, find an open issue in our monorepo and tell us that you would like to solve it. With that done you can merge your first pull request!"
152 <190>1 2020-05-10T19:43:04.151494+00:00 app worker.1 - - 👮‍♂️ Skipping checks. User is admin: [123456789]