Skip to content

Fix bash module#9

Open
seenkoo wants to merge 1 commit intoaluminiumgeek:masterfrom
seenkoo:master
Open

Fix bash module#9
seenkoo wants to merge 1 commit intoaluminiumgeek:masterfrom
seenkoo:master

Conversation

@seenkoo
Copy link
Contributor

@seenkoo seenkoo commented Jul 17, 2019

Fix bash module

import sys

from lxml import html
from modules.utils import http
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this


result_text = '#{0}\n{1}'.format(quote_id, quote_text)

bot.call(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And use await, as it's async module:

    await http.send(
        bot,
        chat_id=kwargs.get('chat_id'),
        text=result_text,
        data={
            'disable_web_page_preview': True,
            'parse_mode': None,
        }
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants