浏览代码

Fix poll creation

Painor 1 年之前
父节点
当前提交
864552f59b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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];
                             }
                         }