Advertisement
l1von

pasta

Dec 14th, 2020
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. @bot.on.chat_invite()
  2. async def invite(message: Message):
  3. dialog_filename = f"{dir_to_txt}{message.peer_id}.txt"
  4. picture_filename = f"{dir_to_pic}{message.peer_id}.txt"
  5. if not os.path.exists(dialog_filename):
  6. open(dialog_filename, "w").close()
  7. if not os.path.exists(picture_filename):
  8. open(picture_filename, "w").close()
  9. pattern = [["Добавить в чат", payload={"open_app", "app_id": 6441755, "owner_id": -200925480, "hash": "anything_data_100500"}]]
  10. keyboard = keyboard_generator(pattern, one_time=False, inline=True)
  11. await message(hello_message, keyboard=keyboard)
  12.  
  13.  
  14. C:\Users\Administrator\Desktop\neurobotdemotivator>main.py
  15. File "C:\Users\Administrator\Desktop\neurobotdemotivator\main.py", line 86
  16. pattern = [["Добавить в чат", payload={"open_app", "app_id": 6441755, "owner_id": -200925480, "hash": "anything_data_100500"}]]
  17. ^
  18. SyntaxError: invalid syntax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement