Skip to content

Commit b6fee07

Browse files
committed
Updated from ReplyKeyboardHide() methode to ReplyKeyboardRemove()
1 parent a5d6b54 commit b6fee07

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ In bot2.0 update. You can get `callback_query` in update object. In telebot use
216216
@bot.callback_query_handler(func=lambda call: True)
217217
def test_callback(call):
218218
logger.info(call)
219-
```
219+
```
220220

221221
#### TeleBot
222222
```python
@@ -303,7 +303,7 @@ file = requests.get('https://api.telegram.org/file/bot{0}/{1}'.format(API_TOKEN,
303303

304304
```
305305
#### Reply markup
306-
All `send_xyz` functions of TeleBot take an optional `reply_markup` argument. This argument must be an instance of `ReplyKeyboardMarkup`, `ReplyKeyboardHide` or `ForceReply`, which are defined in types.py.
306+
All `send_xyz` functions of TeleBot take an optional `reply_markup` argument. This argument must be an instance of `ReplyKeyboardMarkup`, `ReplyKeyboardRemove` or `ForceReply`, which are defined in types.py.
307307

308308
```python
309309
from telebot import types
@@ -339,9 +339,9 @@ The last example yields this result:
339339
![ReplyKeyboardMarkup](https://pp.vk.me/c624430/v624430512/473e5/_mxxW7FPe4U.jpg "ReplyKeyboardMarkup")
340340

341341
```python
342-
# ReplyKeyboardHide: hides a previously sent ReplyKeyboardMarkup
342+
# ReplyKeyboardRemove: hides a previously sent ReplyKeyboardMarkup
343343
# Takes an optional selective argument (True/False, default False)
344-
markup = types.ReplyKeyboardHide(selective=False)
344+
markup = types.ReplyKeyboardRemove(selective=False)
345345
tb.send_message(chat_id, message, reply_markup=markup)
346346
```
347347

@@ -398,7 +398,7 @@ def query_text(inline_query):
398398

399399
```
400400
###Working with entities:
401-
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
401+
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
402402
Attributes:
403403
* `type`
404404
* `url`
@@ -495,14 +495,14 @@ April 9,2016 Telegram release new bot 2.0 API, which has a drastic revision espe
495495
Telegram Bot API support new type Chat for message.chat.
496496

497497
- Check the ```type``` attribute in ```Chat``` object:
498-
-
498+
-
499499
```python
500500
if message.chat.type == “private”:
501501
# private chat message
502502

503503
if message.chat.type == “group”:
504504
# group chat message
505-
505+
506506
if message.chat.type == “supergroup”:
507507
# supergroup chat message
508508

@@ -533,16 +533,16 @@ Get help. Discuss. Chat.
533533
* [Telegram Proxy Bot](https://bitbucket.org/master_groosha/telegram-proxy-bot) by *Groosha* - A simple BITM (bot-in-the-middle) for Telegram acting as some kind of "proxy".
534534
* [Telegram Proxy Bot](https://github.com/mrgigabyte/proxybot) by *mrgigabyte* - `Credits for the original version of this bot goes to` **Groosha** `, simply added certain features which I thought were needed`.
535535
* [RadRetroRobot](https://github.com/Tronikart/RadRetroRobot) by *Tronikart* - Multifunctional Telegram Bot RadRetroRobot.
536-
* [League of Legends bot](https://telegram.me/League_of_Legends_bot) ([source](https://github.com/i32ropie/lol)) by *i32ropie*
536+
* [League of Legends bot](https://telegram.me/League_of_Legends_bot) ([source](https://github.com/i32ropie/lol)) by *i32ropie*
537537
* [NeoBot](https://github.com/neoranger/NeoBot) by *neoranger*
538538
* [TagAlertBot](https://github.com/pitasi/TagAlertBot) by *pitasi*
539539
* [ComedoresUGRbot](http://telegram.me/ComedoresUGRbot) ([source](https://github.com/alejandrocq/ComedoresUGRbot)) by [*alejandrocq*](https://github.com/alejandrocq) - Telegram bot to check the menu of Universidad de Granada dining hall.
540540
* [picpingbot](https://web.telegram.org/#/im?p=%40picpingbot) - Fun anonymous photo exchange by Boogie Muffin.
541541
* [TheZigZagProject](https://github.com/WebShark025/TheZigZagProject) - The 'All In One' bot for Telegram! by WebShark025
542542
* [proxybot](https://github.com/p-hash/proxybot) - Simple Proxy Bot for Telegram. by p-hash
543543
* [DonantesMalagaBot](https://github.com/vfranch/DonantesMalagaBot)- DonantesMalagaBot facilitates information to Malaga blood donors about the places where they can donate today or in the incoming days. It also records the date of the last donation so that it helps the donors to know when they can donate again. - by vfranch
544-
* [DuttyBot](https://github.com/DmytryiStriletskyi/DuttyBot) by *Dmytryi Striletskyi* - Timetable for one university in Kiev.
545-
* [dailypepebot](https://telegram.me/dailypepebot) by [*jaime*](https://github.com/jiwidi) - Get's you random pepe images and gives you their id, then you can call this image with the number.
544+
* [DuttyBot](https://github.com/DmytryiStriletskyi/DuttyBot) by *Dmytryi Striletskyi* - Timetable for one university in Kiev.
545+
* [dailypepebot](https://telegram.me/dailypepebot) by [*jaime*](https://github.com/jiwidi) - Get's you random pepe images and gives you their id, then you can call this image with the number.
546546
* [wat-bridge](https://github.com/rmed/wat-bridge) by [*rmed*](https://github.com/rmed) - Send and receive messages to/from WhatsApp through Telegram
547547
* [flibusta_bot](https://github.com/Kurbezz/flibusta_bot) by [*Kurbezz*](https://github.com/Kurbezz)
548548
* [EmaProject](https://github.com/halkliff/emaproject) by [*halkliff*](https://github.com/halkliff) - Ema - Eastern Media Assistant was made thinking on the ease-to-use feature. Coding here is simple, as much as is fast and powerful.

‎README.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ Reply markup
497497

498498
All ``send_xyz`` functions of TeleBot take an optional ``reply_markup``
499499
argument. This argument must be an instance of ``ReplyKeyboardMarkup``,
500-
``ReplyKeyboardHide`` or ``ForceReply``, which are defined in types.py.
500+
``ReplyKeyboardRemove`` or ``ForceReply``, which are defined in types.py.
501501

502502
.. code:: python
503503
@@ -538,9 +538,9 @@ The last example yields this result:
538538

539539
.. code:: python
540540
541-
# ReplyKeyboardHide: hides a previously sent ReplyKeyboardMarkup
541+
# ReplyKeyboardRemove: hides a previously sent ReplyKeyboardMarkup
542542
# Takes an optional selective argument (True/False, default False)
543-
markup = types.ReplyKeyboardHide(selective=False)
543+
markup = types.ReplyKeyboardRemove(selective=False)
544544
tb.send_message(chat_id, message, reply_markup=markup)
545545
546546
.. code:: python

‎examples/detailed_example/detailed_example.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
imageSelect = types.ReplyKeyboardMarkup(one_time_keyboard=True) # create the image selection keyboard
2222
imageSelect.add('cock', 'pussy')
2323

24-
hideBoard = types.ReplyKeyboardHide() # if sent as reply_markup, will hide the keyboard
24+
hideBoard = types.ReplyKeyboardRemove() # if sent as reply_markup, will hide the keyboard
2525

2626

2727
# error handling if user isn't known yet

0 commit comments

Comments
 (0)