Example output
import telebot
# Create a new bot using the Telegram token
bot = telebot.TeleBot("<YOUR TELEGRAM BOT TOKEN>")
# Handler for the /start command
@bot.message_handler(commands=['start'])
def start_handler(message):
bot.send_message(message.chat.id, "Hello! I am a Customer Support Bot. I can tell you all the important information about our services. Choose command /help to find out more about my abilities.")
# Handler for the /help command
@bot.message_handler(commands=['help'])
def help_handler(message):
response = "You can choose between 3 support options. Choose command /payments if you want to find out about our payment methods. Choose command /delivery if you want to find out about our delivery methods. And choose command /contacts if you want to find out about our contacts"
bot.send_message(message.chat.id, response)
# Handler for the /payments command
@bot.message_handler(commands=['payments'])
def payments_handler(message):
response = "We accept payments from Visa/MasterCard, PayPal, and cryptocurrency"
bot.send_message(message.chat.id, response)
# Handler for the /delivery command
@bot.message_handler(commands=['delivery'])
def delivery_handler(message):
response = "For delivery, we use FedEx, DHL, and GLS"
bot.send_message(message.chat.id, response)
# Handler for the /contacts command
@bot.message_handler(commands=['contacts'])
def contacts_handler(message):
response = "Our customer support team can be reached via email at support@company.com or by phone at +1-555-555-5555"
bot.send_message(message.chat.id, response)
# Run the bot
bot.polling()
Make sure to replace "<YOUR TELEGRAM BOT TOKEN>" with the actual token of your bot.