Learn with H4RDIXx & redzed
Open in Telegram
Learn with meeee about anything 🗿🫶
Show moreThe country is not specifiedThe category is not specified
239
Subscribers
-124 hours
-67 days
-530 days
Posts Archive
THE KEYBOARD BUTTON :
imports :import telebot / from telebot.types import ReplyKeyboardMarkup , KeyboardButton
step 2 create the structure and bttuons
the structure=name variable = ReplyKeyboardMarkup(resize_keyboard= True)
For example:main = ReplyKeyboardMarkup(resize_keyboard= True)
resize keyboard = The button needs to be measured and suitable
step3 the buttons
For example:btn1 = KeyboardButton("name buttton")
For examplebtn1 = KeyboardButton("test") | btn2 = btn1 = KeyboardButton("negro)
and u can add more buttonsmain.add(btn1 , btn2)
use it to add the buttons to main structure
now señd start messagebot.send_messaage(msg.chat.id , "CHOSE THE BUTTON" , reply_markup = main) for if and elif and else I talked about it in the previous video.
