JungDev / django-telegrambot

Simple app for Telegram bot in Django
BSD 3-Clause "New" or "Revised" License
237 stars 88 forks source link

Cannot find default bot with username username_of_my_bot #11

Closed sky1048576 closed 6 years ago

sky1048576 commented 6 years ago

hello and thank you for your great job

I can work with this app with webhook method and it's working very well but i need to work with polling method on my local app. then i went to my settings.py and changed MODE to POLLING then i went to the root path and opened a terminal then i runed this command: python manage.py botpolling --username konar19bot but i get this error: Cannot find default bot with username konar19bot Bot not found but I an sure that there is a robot with this name I created it myself and something wired is this message : Required TELEGRAM_WEBHOOK_SITE missing in settings why I have to difine TELEGRAM_WEBHOOK_SITE ? I don't want to set webhook. i just want to work with update method .

so can you tell where am I going wrong? Do I have to do something more?

thank you

JungDev commented 6 years ago

I think your django didn't reload settings. May stop and restart django after settings changes and check if this problem is there yet.

sky1048576 commented 6 years ago

yes that was the reason . thank you very much my please close this issue