skip to Main Content

Telegram permitted callback_data size less than file_id size – Telegram API

I need to resend file id in callback data like that: cd1 = 'publish {}'.format(new_file_id) cd2 = 'delayed 1 {} *'.format(new_file_id) ... markup = types.InlineKeyboardMarkup(1) btn1 = types.InlineKeyboardButton(text='Publish', callback_data=cd1) btn2 = types.InlineKeyboardButton(text='Delayed publication', callback_data=cd2) markup.add(btn1, btn2) bot.edit_message_reply_markup(message.chat.id, msg.message_id, reply_markup=markup) But…

VIEW QUESTION

CronTab Run only ONCE in a year – Debian

Here is my job 45 5 5 2 WED /usr/bin/python3 /home/pi/Saqib/RaspBerryPiAdhan/www/commands/player.py "/static/media/fajr1.mp3" "Office Ustairs speaker" Jobs looks fine, as I want it to run only once in a year...however i am using a module called "croniter"...and it seems like it…

VIEW QUESTION

Python IBM_DB using SSL connection – CentOS

I'm using Python on Centos 7 and I have installed GSK8Kit with DB2 11.3 client. So I set: IBM_DB_HOME=/path/to/my/db2client/sqllib - ODBC and clidriver Also I set: LD_LIBRARY_PATH = $IBM_DB_HOME/lib:$LD_LIBRARY_PATH Then I installed ibm_db: pip install ibm_db I added my db2servercert.arm…

VIEW QUESTION
Back To Top
Search