Can't get fresh length of list Telegram bot API
I have flask telegram bot with pyTelegramBotAPI deployed on Heroku. Need to get fresh length of list in the start message. List refreshing every 5 minutes in gettinglist.py. Can't find my mistake, please help. bot.py import config import gettinglist from gettinglist import getting_list import telebot from flask import Flask, request from threading import Thread def app_run(): app.run(host="0.0.0.0", port=os.environ.get('PORT', 80)) msg_start = """ Length of list now: %d """ % config.LIST_LENGTH application_thread = Thread(target=app_run) getting_list_thread = Thread(target=getting_list) bot =
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.