Spaces:
Running
Running
BinaryONe
commited on
Commit
·
375e34d
1
Parent(s):
12ca46d
changes In Upload
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
@@ -5,6 +5,7 @@ import datetime
|
|
5 |
from pyrogram import filters, Client, raw, types,enums
|
6 |
from pyrogram.errors import FloodWait
|
7 |
from pyrogram.raw import functions
|
|
|
8 |
from pyrogram.enums.parse_mode import ParseMode
|
9 |
from pyrogram.file_id import FileId, FileType, PHOTO_TYPES
|
10 |
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery, WebAppInfo
|
@@ -145,12 +146,14 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
145 |
media=InputMediaPoll(
|
146 |
poll=Poll(
|
147 |
question="Is this a poll question?",
|
148 |
-
|
149 |
multiple_choice=True,
|
|
|
150 |
)
|
151 |
),
|
152 |
)
|
153 |
"""
|
|
|
154 |
await FileStream.send_poll(
|
155 |
type= enums.PollType.REGULAR,
|
156 |
reply_to_message_id=message_id,
|
|
|
5 |
from pyrogram import filters, Client, raw, types,enums
|
6 |
from pyrogram.errors import FloodWait
|
7 |
from pyrogram.raw import functions
|
8 |
+
from pyrogram.raw.base import PollAnswer
|
9 |
from pyrogram.enums.parse_mode import ParseMode
|
10 |
from pyrogram.file_id import FileId, FileType, PHOTO_TYPES
|
11 |
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery, WebAppInfo
|
|
|
146 |
media=InputMediaPoll(
|
147 |
poll=Poll(
|
148 |
question="Is this a poll question?",
|
149 |
+
answers=["Movie", "WebSeries", "Anime", "Documentary", "Regular"],
|
150 |
multiple_choice=True,
|
151 |
+
quiz=False,
|
152 |
)
|
153 |
),
|
154 |
)
|
155 |
"""
|
156 |
+
PollAnswer(
|
157 |
await FileStream.send_poll(
|
158 |
type= enums.PollType.REGULAR,
|
159 |
reply_to_message_id=message_id,
|