Telegram-bot-sdk: new line in sendMessage

Created on 22 Aug 2016  路  3Comments  路  Source: irazasyed/telegram-bot-sdk

screenshot-web telegram org 2016-08-22 00-10-52

$response = $telegram->sendMessage([
    'chat_id' => $chat_id, 
    'text' => 'Success! Your Telegram account with name <b>'.$first_name.' '.$last_name.'</b> has been added into iBridge data!.%0ABack to <a href="https://ibridgeapp.com/home">iBridge</a>',
    'parse_mode' => 'HTML'
]);

Using n or %0A did not make a new line. any suggestion?

Most helpful comment

Please use n inside double quotation mark ("), not in single quote (')

All 3 comments

Please use n inside double quotation mark ("), not in single quote (')

Please Use %0a for new Line (I try in PHP it's working)

Please Use %0a for new Line (I try in PHP it's working)

Works fine with GET API request.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wlinh picture wlinh  路  3Comments

corneyl picture corneyl  路  3Comments

jahanzaibbahadur picture jahanzaibbahadur  路  4Comments

Visionary89 picture Visionary89  路  5Comments

behnamazimi picture behnamazimi  路  3Comments