skip to Main Content

World list in message.content – Telegram API

Hello i'm trying to make a custom bot for telegram in Python. i'm looking to use a world list combined with in message content. world_list = ['home', 'house', 'maison'] @client.listen('on_message') async def on_message(message): if message.content in world_list: await message.channel.send("i'm coming…

VIEW QUESTION

Unable to upgrade Pip on Python 2.7.5 – CentOS

I'm trying to upgrade pip to the latest version on Python 2.7.5 on Centos 7. # python -m pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/9e/24/bc928987f35dd0167f21b13a1777c21b9c5917c9894cff93f1c1a6cb8f3b/pip-21.0.tar.gz Complete output from command python setup.py egg_info: /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'…

VIEW QUESTION

How to create separate files for functions, then import them? – Telegram API

I have this working code: from telegram import Update from telegram.ext import Updater, CommandHandler, CallbackContext updater = Updater('token') def hello(update: Update, context: CallbackContext) -> None: update.message.reply_text('Hello!') updater.dispatcher.add_handler(CommandHandler('hello', hello)) updater.start_polling() updater.idle() I wish to have a separate file for each function…

VIEW QUESTION

Getting a lot of conflicts when upgrading anaconda to latest version – Telegram API

I ran the command conda install anaconda=2020.11 but got a lot of package conflicts. Package gettext conflicts for: cairo -> libglib[version='>=2.66.4,<3.0a0'] -> gettext[version='>=0.19.8.1,<1.0a0'] libgdal -> poppler[version='>=0.89.0,<0.90.0a0'] -> gettext[version='>=0.19.8.1,<1.0a0'] libglib -> gettext[version='>=0.19.8.1,<1.0a0'] Package get_terminal_size conflicts for: _anaconda_depends -> get_terminal_size anaconda=2020.11 ->…

VIEW QUESTION
Back To Top
Search