bot-python-sdk icon indicating copy to clipboard operation
bot-python-sdk copied to clipboard

اجرا نکردن get_message

Open mahigamemaker opened this issue 4 years ago • 5 comments

. ارور زیر رو میده وقتی
get_message رو اجرا میکنم.

Invalid URL '<Response [200]>': No schema supplied. Perhaps you meant http://<Response [200]>? retry to connect after 10 seconds...

کد رو هم تغییر ندادم. به راحتی پیام ارسال میکنم ولی دریافت رو مشکل دارم!

from sys import path path.append('..') from client import Client

bot_token = 'atyJDqAzb0p-*******************J-W'

bot = Client(bot_token)

try: messages = bot.get_messages() for message in messages: print("New message from {} \nType: {}\nBody: {}" .format(message['from'], message['type'], message['body']))

except Exception as e: print(e.args[0])

mahigamemaker avatar Apr 05 '20 23:04 mahigamemaker