UsergeTeam / Userge

Userge, Durable as a Serge
https://userge.tech
GNU General Public License v3.0
676 stars 2.02k forks source link

add translate support to poll #408 #459

Closed Krishna-Singhal closed 2 years ago

pep8speaks commented 2 years ago

@Krishna-Singhal, Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2022-02-04 07:09:16 UTC
Jigarvarma2005 commented 2 years ago
    if replied:
        if replied.poll:
            text = f'{replied.poll.question}\n'
            for i, option in enumerate(replied.poll.options, start=1):
                text += f'\n\t{i}.{option.get("text")}'
        else:
            text = message.reply_to_message.text or message.reply_to_message.caption
Krishna-Singhal commented 2 years ago
    if replied:
        if replied.poll:
            text = f'{replied.poll.question}\n'
            for i, option in enumerate(replied.poll.options, start=1):
                text += f'\n\t{i}.{option.get("text")}'
        else:
            text = message.reply_to_message.text or message.reply_to_message.caption

ah lol

rking32 commented 2 years ago

@Krishna-Singhal thanks for helping to close that issue :)