Commit 56fca06
Pietro Albini
Fix botogram crashing if someone edits a message
The Bot API 2.1 update (not supported by botogram 0.2.x) introduced a
new kind of Update when someone edits a message the bot knows about.
This allows to create cool things, but it isn't supported by botogram
0.2.x, since support for it was added in botogram 0.3.1.
Unfortunately, this meant botogram crashed when it received that kind
of update. This commit ignores every update other than the ones it
supports, so the fix lasts even for new kind of updates not introduced
yet.
Fixes: GH-701 parent 7cdd77b commit 56fca06
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
| |||
0 commit comments