Answer the question
In order to leave comments, you need to log in
How to send a sticker from the list?
Hello! There is a list of id stickers
list_stickers = ['CAACAgIAAxkBAAEBWpJgsSIpXAIvIQ1CRSNdNcw73gPQ-gACZgADmL-ADdSD2FV_WKB2HwQ ',
'CAACAgIAAxkBAAEBWpVgsSJFvd---tTBzWmC2fjmgSRNtgAClgsAAi8P8AY2nz1gNs-uyx8E ',
'CAACAgIAAxkBAAEBWphgsSJfrd16hAxNoZTEAAFT1lQCQrsAAqYBAAIQIQIQpBELJ8cKny0fBA ',
'CAACAgIAAxkBAAEBWp1gsSJ2iXL3-RAsrA3Xk9wDXMM-QgACEwADwDZPE6qzh_d_OMqlHwQ ',
'CAACAgIAAxkBAAEBWqBgsSKKuQ5UgQhjBOVzpoboBIzXjQAClwEAAhAhAhA2QYBP_aWNUR8E']
@bot.message_handler(commands=["sticker"])
def first_send_sticker(message):
bot.send_sticker(message.chat.id, list_stickers[0])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question