Why doesn t the button display below the message

0 votes

Why doesn't the button display below the message? 

  await message.answer (f "Hello {message.from_user.first_name}!",
                         reply_markup = InlineKeyboardMarkup (InlineKeyboardButton ('callback', callback_data = 'callback')))
Nov 3, 2020 in Python by anonymous
• 10,420 points
27 views

1 answer to this question.

0 votes

You can make use of the given below given:

reply_markup=InlineKeyboardMarkup().add(InlineKeyboardButton(text='callback', callback_data='callback'))
answered Nov 3, 2020 by Gitika
• 65,870 points

Related Questions In Python

0 votes
1 answer

Why is Python scoping made the way it is?

The likeliest answer is that it just ...READ MORE

answered Nov 5, 2018 in Python by Nymeria
• 3,520 points

edited Dec 17, 2018 by Nymeria 90 views
0 votes
1 answer

Why does the AttributeError occur?

This happens because the scipy module doesn't ...READ MORE

answered Dec 4, 2018 in Python by SDeb
• 13,250 points
963 views
0 votes
1 answer

How to print a message or the error if a file is not found?

To print the message that file is not ...READ MORE

answered Jan 2, 2019 in Python by Omkar
• 69,090 points
230 views
0 votes
1 answer

How to solve indentation in the below code?

Python does not use brackets, it uses ...READ MORE

answered Feb 9, 2019 in Python by Omkar
• 69,090 points
134 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,847 views
0 votes
0 answers
+4 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points
1,421 views
0 votes
1 answer

What will be the output of below code and why? x=[1,2,3,4,5] print(x.insert(2,3))

If you write x.insert(2,3) and then print x ...READ MORE

answered Oct 14, 2020 in Python by Gitika
• 65,870 points
618 views
0 votes
1 answer

String is immutable data type. String.replace() So why there is command for string to replace the values....??

Hey, @Nelson, replace() actually returns a *copy* of ...READ MORE

answered Mar 30, 2020 in Python by Gitika
• 65,870 points
489 views