Advertisement
Guest User

def for vk

a guest
Mar 28th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. def thu():
  2.     thursday = cursor.execute("SELECT * FROM timetable_pks_2 WHERE day ='Четверг'")
  3.     while True:
  4.         thursday = cursor.fetchone()
  5.         if thursday == None:
  6.             break
  7.             vk.messages.send(
  8.                     user_id=event.user_id,
  9.                     message = (thursday[0], '\n', thursday[1], '\n', thursday[2], '\n', thursday[3], '\n', thursday[4]),
  10.                     random_id=randint(1, 100000000000000000000000000000000),
  11.                     keyboard=keyboard.get_keyboard()
  12.                 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement