bot.sendMessage(chat_id=update.message.chat_id,text="Здравствуйте %s! Для поиска книги, введите ее полное наименование или часть:"%(update.message.from_user.username))
self.logger.info("Start talking with user: %s"%update.message.from_user)
deftextMessage(self,bot,update):
defgetBooks(self,bot,update):
book_name=update.message.text
response='Выполняю поиск книги: %s'%(book_name)
self.logger.info("Got message from user %s: %s"%(update.message.from_user.username,book_name))
iflen(book_name)<3:
response='Слишком короткая строка для поиска, попробуйте еще раз.'
'2. Server Options':('SOPDS_AUTH','SOPDS_ALPHABET_MENU','SOPDS_DOUBLES_HIDE','SOPDS_COVER_SHOW','SOPDS_SPLITITEMS','SOPDS_MAXITEMS','SOPDS_TITLE_AS_FILENAME','SOPDS_NOCOVER_PATH'),