irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
2.98k stars 660 forks source link

Please, add leaveChat method to current stable 2 version #325

Closed seyfer closed 7 years ago

seyfer commented 7 years ago

https://core.telegram.org/bots/api#leavechat

This method is very useful for commands like /off or /unsubscribe.

seyfer commented 7 years ago

I have changed version to

"irazasyed/telegram-bot-sdk": "dev-develop"

and now it's here.

seyfer commented 7 years ago

No, it's not.

New version works in very different way. So, please backport method leaveChat to 3.*@dev

derakoola commented 7 years ago

@irazasyed When do you publish version 3, please!?

jonnywilliamson commented 7 years ago

@seyfer Why do you believe leavechat is not in the dev version?

https://github.com/irazasyed/telegram-bot-sdk/blob/develop/src/Methods/LeaveChat.php

seyfer commented 7 years ago

@jonnywilliamson I use a version before Methos in their own directory were introduced. And there is no LeaveChat method.

irazasyed commented 7 years ago

Please refer this starter package I just released: https://github.com/irazasyed/telegram-bot-laravel-starter

It has a sample method usage. So you can get an idea on how to use other methods.

seyfer commented 7 years ago

@irazasyed you demonstrate there how to use v3.0, but I have asked about port leaveChat back to 2.0.

seyfer commented 7 years ago

@irazasyed , @jonnywilliamson so, what about version 2.2 and leaveChat method?