Pārlūkot izejas kodu

Fix poll creation

Painor 1 gadu atpakaļ
vecāks
revīzija
864552f59b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 {
                         for (const answer of answers) {
-                            if (answer.text == text) {
+                            if (answer.text.text == text) {
                                 return [answer.option];
                             }
                         }