Telegram-bot-sdk: Release 2.x version with editMessageText() method

Created on 16 May 2017  路  2Comments  路  Source: irazasyed/telegram-bot-sdk

Or is there another way to use this method without releasing a new version?

Most helpful comment

Yes, of course.

class Api extends \Telegram\Bot\Api
{
    public function editMessageText(array $params)
    {
        $response = $this->post('editMessageText', $params);
        return new Message($response->getDecodedBody());
    }

    public function deleteMessage(array $params)
    {
        $response = $this->post('deleteMessage', $params);
        return new Message($response->getDecodedBody());
    }
} 

All 2 comments

Yes, of course.

class Api extends \Telegram\Bot\Api
{
    public function editMessageText(array $params)
    {
        $response = $this->post('editMessageText', $params);
        return new Message($response->getDecodedBody());
    }

    public function deleteMessage(array $params)
    {
        $response = $this->post('deleteMessage', $params);
        return new Message($response->getDecodedBody());
    }
} 

Just use dev-develop but that has major changes. So you have to check the implementation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mccarlosen picture mccarlosen  路  3Comments

b10585 picture b10585  路  4Comments

jobs2008 picture jobs2008  路  3Comments

iMohammadd picture iMohammadd  路  3Comments

dswtech picture dswtech  路  4Comments