Skip to content

Commit

Permalink
Fexed an error with payload reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
mleandrojr committed Jul 12, 2024
1 parent 312d985 commit 48ed931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class Controller {
*/
protected async handle(payload: Record<string, any>): Promise<void> {

if (!payload.ok) {
if (!payload.update_id) {
Log.save("Invalid payload.\n" + JSON.stringify(payload), "", false, "error");
return Promise.resolve();
}
Expand Down

0 comments on commit 48ed931

Please sign in to comment.