I
I
Islamfon2015-08-09 15:10:11
Bots
Islamfon, 2015-08-09 15:10:11

How to send emoticon via Telegram Bot?

How to send a smiley via bot?
Manually if you send the text :smile: or :x: - it turns into a smiley.
And if through the bot like this, then it sends just a text.
$curl->get(' https://api.telegram.org/bot '{token}/sendMessage',array(
'chat_id' => $chat,
'text' => ':smile:',
'disable_web_page_preview' => true,
));

Answer the question

In order to leave comments, you need to log in

4 answer(s)
H
hps5mf, 2015-12-22
@hps5mf

An example solution for python you can find here)
https://github.com/mustafababil/Telegram-Weather-B... Smiley
code here:
apps.timwhitlock.info/emoji/tables/unicode

A
AcidUA, 2015-11-14
@AcidUA

did you find the answer to your question? He interests me too!

I
igorigorigor, 2017-08-08
@igorigorigor

for PHP, where the smiley is, put hex2bin('f09f9880')
f09f9880 - smiley code without \x with https://apps.timwhitlock.info/emoji/tables/unicode column Bytes (UTF-8)

A
abonu, 2019-05-01
@abonu

@getemojicodebot - a bot that you can send a smiley to, it will return its code in the response.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question