для скачивания
                  
                  
                  Имею примерно такое:
                  
                  
                  
                  
                  
                  @bot.message_handler(commands=['text'])
                  
                  
                  def handle_start(message):
                  
                  
                  if message.text == "text":
                  
                  
                  
                  
                  
                  directory = "path"
                  
                  
                  all_files_in_directory = os.listdir(directory)
                  
                  
                  for book in all_files_in_directory:
                  
                  
                  
                  
                  
                  file = open(directory + book, 'rb')
                  
                  
                  bot.send_char_action(message.from_user.id, 'upload document')      bot.send_document(message.from_user.id, file)
                  
                  
                  file.close()
                  
                  
                  
                  
                  
                  В чеем может быть проблема? Где можно найти материалы по эотй теме?(кроме гугла, конечно, вдруг у кого есть что посоветоваать)
                  
                  
                
Там у тебя char_action
по какой теме?
A "path" можно как строку хранить?
Обсуждают сегодня