added new function docstrings, use docstring for documentationpylint --evaluation
This commit is contained in:
parent
761f073767
commit
bdbc3719a4
@ -29,13 +29,10 @@ bot = telebot.TeleBot(os.getenv('BOT_API_KEY'))
|
|||||||
|
|
||||||
@bot.message_handler(commands=['start', 'Start'])
|
@bot.message_handler(commands=['start', 'Start'])
|
||||||
def send_start(message):
|
def send_start(message):
|
||||||
""" Sending welcome message to new user
|
"""send start message to user
|
||||||
:type message: message object bot
|
|
||||||
:param message: message that was reacted to, in this case always containing '/start'
|
|
||||||
|
|
||||||
:raises: none
|
Args:
|
||||||
|
message (Message): message from telegram user, here /start
|
||||||
:rtype: none
|
|
||||||
"""
|
"""
|
||||||
bot.reply_to(message, "Welcome to this amazon prices guesser bot")
|
bot.reply_to(message, "Welcome to this amazon prices guesser bot")
|
||||||
|
|
||||||
@ -43,6 +40,23 @@ def send_start(message):
|
|||||||
telebot.logger.setLevel(logging.DEBUG)
|
telebot.logger.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
|
|
||||||
|
@bot.message_handler(commands=['help', 'Help'])
|
||||||
|
def send_help(message):
|
||||||
|
"""send all commands to user
|
||||||
|
|
||||||
|
Args:
|
||||||
|
message (Message): Message from telegram user, here /help
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
None: None
|
||||||
|
|
||||||
|
Raises:
|
||||||
|
None: None
|
||||||
|
|
||||||
|
"""
|
||||||
|
bot.reply_to(message, "This is the help message")
|
||||||
|
|
||||||
|
|
||||||
@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):
|
||||||
""" Output in the console about current user actions and status of bot
|
""" Output in the console about current user actions and status of bot
|
||||||
|
Loading…
Reference in New Issue
Block a user