Ask a Question
Back to All

How to solve UTF8 error for sendMessage method?

I'm writing my first Telegram bot with PHP SDK . As I am an Iranian, I've used Persian language in my bot for messages that bot sends to user. But because of using Persian letters in message, I get this error:

| Bad Request: message text must be encoded in UTF-8

When I change those messages to English for example, the problem does not exist anymore.
Do you have any idea?