Answer the question
In order to leave comments, you need to log in
How to switch from function to another function in python telegram bot?
How to make it so that when the function has completed, given the necessary data to the user and written a message, the bot starts to perform another function?
Answer the question
In order to leave comments, you need to log in
Create the function itself.
Then refer to it as usual :)
Example:
def get_sum(num1, num2):
print(num1 + num2)
def get_param():
x = int(input("number 1: "))
y = int(input("number 2: "))
get_sum(x, y)
get_param()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question