Answer the question
In order to leave comments, you need to log in
How to change the output of discord.py?
When I display the received information, I get a report with the id of the message, chat, etc.
and I need to get the number that I entered (for example, 54)
Here is my code:
def check_two(m):
m = m.content
# return m.isdigit() and (1 <= int(m) <= 139)
return (1 <= int(m) <= 139)
msg2 = await bot.wait_for('message', check=check_two)
DataBook_Page = await channel.send('Страница'.format(msg2))
print(DataBook_Page)
Answer the question
In order to leave comments, you need to log in
well, you print the whole answer, and you print only what you need!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question