yukuku / telebot

Telegram Bot starter kit. Very easy to install with Google App Engine.
Apache License 2.0
689 stars 236 forks source link

Send Stickers #57

Closed makimaki92 closed 8 years ago

makimaki92 commented 8 years ago

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.

makimaki92 commented 8 years ago

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='')