As a python developer, write a telegram bot with "python-telegram-bot" 3.17 to do the…
Jump to turn (15)
- 1As a python developer, write a telegram bot with "python-telegram-bot" 3.17 to d
- 2I got this error: Traceback (most recent call last): File "/home/bostools/bot/./
- 3I want two modification on the code, first the user should start conversation no
- 4Can you give me the complete code with your fixes?
- 5The content of the compress tar.gz files should have the referral ID in their na
- 6Can you replace the sentence "All files have been sent." with the format below:
- 7Only one issue is left, the file nme for tar.gz files are wrong. for example the
- 8Change the finalmessage part to be able to embed a link into the message.
- 9How should I add a json file beside the bot.py and if the referral ID was one of
- 10In this part of the code: Rename binary os.rename('braiins-toolbox', f'braiinsto
- 11I want to add 2 more commands to this bot, first /start to send a description ab
- 12In this section of code, cancel doesn't work: def main(): updater = Updater(TOKE
- 13I want also add a new command called /tool. with this command it should do unzip
- 14Can you add an athuntication via publikc key to response the bot? I can add my p
- 15How can I reply back users chat ID in the /start command message?
- User
As a python developer, write a telegram bot with "python-telegram-bot" 3.17 to do the explanation below: my token is: 1935475560:AAHwHnildfDXMxNw_XVJSt6J7cCIcyO_t9o
I have 3 zip files below with names beside the bot.py file which you will code it: braiins-toolbox_aarch64-linux.zip braiins-toolbox_armv7-linux.zip braiins-toolbox_x86_64-linux.zip
all of the files above have a binary braiins-toolbox.
I want a telegram bot based on python-telegram-bot 3.17, It should get a referral ID(refid) and Company name(coname) from the user and unzip the zip files above one by one and add the referral ID(refid) to the braiins_toolbox like braiins_toolbox_"refid" and then compress it with "tar -pczvf" into the files with the company name added to them.
so the final files should be like this:
braiins-toolbox_aarch64-linux.zip should be braiins-toolbox_aarch64-linux_coname.tar.gz braiins-toolbox_armv7-linux.zip should be braiins-toolbox_armv7-linux_coname.tar.gz braiins-toolbox_x86_64-linux.zip should be braiins-toolbox_x86_64-linux_coname.tar.gz
at the last stage, these files should send to the user in telegram as files with this message:
Referral ID "refid" is ready for "coname"