This article will show you how to build a telegram bot for a small-scale business owner. This bot will be pretty similar to the popular platform Wh...
For further actions, you may consider blocking this person and/or reporting abuse
@curiouspaul1 Amazing job, really! I was wondering about further development. Do you have any post I could look into?
thanks for the kind words,
any post regarding what would you like me to help you with
@curiouspaul1 I tried to modify and use your Bot in my university so students can sell and buy things.
So, a few things I wish you could show/teach:
Divide posts/ads into categories but not businesses.
Also, I noticed that when fetching posts/ads from the databases sometimes it fails because, perhaps the user added unnecessary space or capitalization error (i tried to put a bunch of lower().strip() everywhere)
In addition, it would be amazing if SME and Customer both had the same functionality (both can buy and sell).
And I kinda failed to add Back buttons everywhere, but managed to add Exit button (just used you /cancel function)
Lastly, some buttons make require to be pressed two times, do you know why?
The bot: @ucaStudentStore_bot
Code link - (removing the link since you joined)
hmm, thanks a lot for pointing all of these out, I will work on them and once an upate is ready, i'll let you know
you're also welcome to join me in implementing these, i see you;ve forked the repository already. Btw there's an option to filter post/ads by category already.
here..
Hi! Thank you for responding! But I your message just says "here.." and that is? Is there a link or something?
I opened a issue in GitHub, in telegram-business repository please, check it. I need your help
oh theres supposed to be an image
alright great!
Hello. I rewrote your main code and when I run the code, it says the following:
& C: /Users/maxpy/AppData/Local/Programs/Python/Python39/python.exe
d: /Plmenno/main.py
File "", line 1
& C: /Users/maxpy/AppData/Local/Programs/Python/Python39/python.exe
^ d: /Plmenno/main.py
SyntaxError: invalid syntax.
What should I do?
Hi thanks for stopping by, could you share your code on github with me so i can give it a look?
you will help me?
yes sure sure, do you think we can schedule a google meets call and you can show me whats wrong on the call, send me an email: Paulcurious7@gmail.com
github.com/Maximpylnyk/Python
Ok
Hi! I have problem when I try upload an image using Cloudinary, I don't know what happen. This is my code:
The console show:
Does anyone have any idea what is going on?
Hi, this doesn't seem like the code i wrote in the demo, for this article, however this doesn't look like the code to upload an image to cloudinary looks like. You might want to check the docs or use the one i wrote on the
product_info
method inhandlers.py
from the tutorial.I get the same problem when doing the demo, that's why I simplified it.
The console show the same error:
I know the error is
upload
because when I remove it the error does not appear.I see, do you add caption to the image when you test it though.?
Could you check my code and see if there is something I am doing wrong?
github.com/alvaaz/telegram_bot
I would really appreciate it
oh great!, thanks for making this easier I'll take a look
Cant seems to solve this error while running the Main.py
Traceback (most recent call last):
File "C:\Users\ACER\Desktop\Bot\Bot\main.py", line 35, in
main()
File "C:\Users\ACER\Desktop\Bot\Bot\main.py", line 16, in main
entry_points=[CommandHandler('start', handlers.start)],
NameError: name 'handlers' is not defined. Did you mean: 'handler'?
did you rename the "handlers.py" file
No, its 'handlers.py' only.
File "\main.py", line 9, in
updater = Updater(token=TOKEN, use_context=True)
File "\updater.py", line 237, in init
raise ValueError('
token
orbot
must be passed')ValueError:
token
orbot
must be passedany way to fix this (removed directory for privacy purpose)
this is when i enter python main.py
You have to replace "TOKEN" with the actual token that you got from the telegram Bot-father and use that instead, i just put "TOKEN" as a placeholder
Awesome
Just wanted to notify you forgot to define the market on choose method
reply_markup=markup
Oh thanks a lot man..i just noticed that
========== RESTART: C:\Users\User\Desktop\botpol\botpol_env\main.py ==========
Traceback (most recent call last):
File "C:\Users\User\Desktop\botpol\botpol_env\main.py", line 1, in
import handlers
File "C:\Users\User\Desktop\botpol\botpol_env\handlers.py", line 1, in
from telegram import (
ModuleNotFoundError: No module named 'telegram'
Iam really stuck.
Awesome
Thanks a lot boss
I have copied the exact code still I am getting this error. please help me
This is the error: dev-to-uploads.s3.amazonaws.com/up...