yukuku / telebot

Telegram Bot starter kit. Very easy to install with Google App Engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Send Stickers

makimaki92 opened this issue · comments

I'm sorry I am new to all this and is there anyway i can send a sticker instead of just images/words.
I know how to reply with images and messages but do not know how to send a sticker.

i just figured it out:

elif sti:
resp = urllib2.urlopen(BASE_URL + 'sendSticker', urllib.urlencode({
'chat_id': str(chat_id),
'sticker': sti.encode('utf-8'),
##'reply_to_message_id': str(message_id),
})).read()

and then you this code under customization:

reply(sti='<file_id of your sticker>')