Skip to content

Commit 2dd29e9

Browse files
committed
Add ome documentation comments and update the Readme for Bot API 3.2
1 parent 477ebd5 commit 2dd29e9

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# TelegramBotPHP
2-
[![API](https://img.shields.io/badge/Telegram%20Bot%20API-June%2030%2C%202017-36ade1.svg)](https://core.telegram.org/bots/api)
2+
[![API](https://img.shields.io/badge/Telegram%20Bot%20API-July%2021%2C%202017-36ade1.svg)](https://core.telegram.org/bots/api)
33
![PHP](https://img.shields.io/badge/php-%3E%3D5.3-8892bf.svg)
44
![CURL](https://img.shields.io/badge/cURL-required-green.svg)
55

@@ -8,7 +8,7 @@
88
[![StyleCI](https://styleci.io/repos/38492095/shield?branch=master)](https://styleci.io/repos/38492095)
99

1010
> A very simple PHP [Telegram Bot API](https://core.telegram.org/bots) for sending messages.
11-
> (Almost) Compliant with the June 30, 2017 Telegram Bot API update.
11+
> (Almost) Compliant with the July 21, 2017 Telegram Bot API update.
1212
1313
Requirements
1414
---------

Telegram.php

+8
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,8 @@ public function getFile($file_id)
791791

792792
return $this->endpoint('getFile', $content);
793793
}
794+
795+
/// Kick Chat Member
794796

795797
/**
796798
* Use this method to kick a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless <a href="https://core.telegram.org/bots/api#unbanchatmember">unbanned</a> first. The bot must be an administrator in the group for this to work. Returns <em>True</em> on success.<br>
@@ -823,6 +825,8 @@ public function kickChatMember(array $content)
823825
{
824826
return $this->endpoint('kickChatMember', $content);
825827
}
828+
829+
/// Leave Chat
826830

827831
/**
828832
* Use this method for your bot to leave a group, supergroup or channel. Returns <em>True</em> on success.</p> <br/>Values inside $content:<br/>
@@ -847,6 +851,8 @@ public function leaveChat(array $content)
847851
{
848852
return $this->endpoint('leaveChat', $content);
849853
}
854+
855+
/// Unban Chat Member
850856

851857
/**
852858
* Use this method to unban a previously kicked user in a supergroup. The user will <strong>not</strong> return to the group automatically, but will be able to join via link, etc. The bot must be an administrator in the group for this to work. Returns <em>True</em> on success.<br/>Values inside $content:<br/>
@@ -877,6 +883,8 @@ public function unbanChatMember(array $content)
877883
{
878884
return $this->endpoint('unbanChatMember', $content);
879885
}
886+
887+
/// Get Chat Information
880888

881889
/**
882890
* Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a <a href="https://core.telegram.org/bots/api#chat">Chat</a> object on success.<br/>Values inside $content:<br/>

0 commit comments

Comments
 (0)