layoutManager = new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false);
recyclerView.setLayoutManager(layoutManager);
PagerSnapHelper snapHelper = new PagerSnapHelper();
snapHelper.attachToRecyclerView(recyclerView);
import schedule
import time
import threading
def job():
print("I'm working...")
schedule.every(1).minutes.do(job)
def go():
while 1:
schedule.run_pending()
time.sleep(1)
t = threading.Thread(target=go, name="тест")
t.start()
@bot.message_handler(commands=['info'])
def handle_text(message):
answer = 'БЛА-БЛА-БЛА.'
bot.send_message(message.chat.id, answer)
if __name__ == '__main__':
bot.polling(none_stop=True, interval=0)