skip to Main Content

Creating a python package (deb/rpm) from cmake – Debian

I am trying to create a python package (deb & rpm) from cmake, ideally using cpack. I did read https://cmake.org/cmake/help/latest/cpack_gen/rpm.html and, https://cmake.org/cmake/help/latest/cpack_gen/deb.html The installation works just fine (using component install) for my shared library. However I cannot make sense of…

VIEW QUESTION

How to store user data and display them according to their corresponding callbacks – Telegram API

Here's my code: from telegram import * from telegram.ext import * import telegram, telegram.ext u = Updater('TOKEN', use_context=True) j=u.job_queue def set(update: Update, context: CallbackContext): user_says=' '.join(context.args) user_says=user_says.split(' ') global item, chat_id item=user_says[1:] chat_id=update.effective_chat.id j.run_once(callback, int(user_says[0])) def callback(context: telegram.ext.CallbackContext): context.bot.send_message(chat_id=chat_id, text=f'Great…

VIEW QUESTION
Back To Top
Search