Logger working, ready for use
This commit is contained in:
parent
c3fb66a193
commit
d9f9bef54e
@ -13,6 +13,7 @@ from dotenv import load_dotenv
|
|||||||
import telebot
|
import telebot
|
||||||
from telebot import types
|
from telebot import types
|
||||||
from apscheduler.schedulers.background import BackgroundScheduler
|
from apscheduler.schedulers.background import BackgroundScheduler
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -33,7 +34,9 @@ def send_start(message):
|
|||||||
|
|
||||||
:rtype: none
|
:rtype: none
|
||||||
"""
|
"""
|
||||||
bot.reply_to(message, "Welcome to this amazon bot")
|
bot.reply_to(message, "Welcome to this amazon prices guesser bot")
|
||||||
|
|
||||||
|
telebot.logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
@bot.inline_handler(lambda query: query.query == 'text') # inline prints for debugging
|
@bot.inline_handler(lambda query: query.query == 'text') # inline prints for debugging
|
||||||
def query_text(inline_query):
|
def query_text(inline_query):
|
||||||
|
Loading…
Reference in New Issue
Block a user