Browse Source

Fix poll creation

Painor 1 year ago
parent
commit
864552f59b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gramjs/tl/custom/message.ts

+ 1 - 1
gramjs/tl/custom/message.ts

@@ -1042,7 +1042,7 @@ export class CustomMessage extends SenderGetter {
                         }
                         }
                     } else {
                     } else {
                         for (const answer of answers) {
                         for (const answer of answers) {
-                            if (answer.text == text) {
+                            if (answer.text.text == text) {
                                 return [answer.option];
                                 return [answer.option];
                             }
                             }
                         }
                         }