@@ -328,7 +328,7 @@ def _quote(self, kwargs):
328328
329329 def reply_text (self , * args , ** kwargs ):
330330 """
331- Shortcut for ``bot.sendMessage (update.message.chat_id, *args, **kwargs)``
331+ Shortcut for ``bot.send_message (update.message.chat_id, *args, **kwargs)``
332332
333333 Keyword Args:
334334 quote (Optional[bool]): If set to ``True``, the message is sent as an actual reply to
@@ -337,11 +337,11 @@ def reply_text(self, *args, **kwargs):
337337 """
338338
339339 self ._quote (kwargs )
340- return self .bot .sendMessage (self .chat_id , * args , ** kwargs )
340+ return self .bot .send_message (self .chat_id , * args , ** kwargs )
341341
342342 def reply_photo (self , * args , ** kwargs ):
343343 """
344- Shortcut for ``bot.sendPhoto (update.message.chat_id, *args, **kwargs)``
344+ Shortcut for ``bot.send_photo (update.message.chat_id, *args, **kwargs)``
345345
346346 Keyword Args:
347347 quote (Optional[bool]): If set to ``True``, the photo is sent as an actual reply to
@@ -354,11 +354,11 @@ def reply_photo(self, *args, **kwargs):
354354 """
355355
356356 self ._quote (kwargs )
357- return self .bot .sendPhoto (self .chat_id , * args , ** kwargs )
357+ return self .bot .send_photo (self .chat_id , * args , ** kwargs )
358358
359359 def reply_audio (self , * args , ** kwargs ):
360360 """
361- Shortcut for ``bot.sendAudio (update.message.chat_id, *args, **kwargs)``
361+ Shortcut for ``bot.send_audio (update.message.chat_id, *args, **kwargs)``
362362
363363 Keyword Args:
364364 quote (Optional[bool]): If set to ``True``, the audio is sent as an actual reply to
@@ -371,11 +371,11 @@ def reply_audio(self, *args, **kwargs):
371371 """
372372
373373 self ._quote (kwargs )
374- return self .bot .sendAudio (self .chat_id , * args , ** kwargs )
374+ return self .bot .send_audio (self .chat_id , * args , ** kwargs )
375375
376376 def reply_document (self , * args , ** kwargs ):
377377 """
378- Shortcut for ``bot.sendDocument (update.message.chat_id, *args, **kwargs)``
378+ Shortcut for ``bot.send_document (update.message.chat_id, *args, **kwargs)``
379379
380380 Keyword Args:
381381 quote (Optional[bool]): If set to ``True``, the document is sent as an actual reply to
@@ -388,11 +388,11 @@ def reply_document(self, *args, **kwargs):
388388 """
389389
390390 self ._quote (kwargs )
391- return self .bot .sendDocument (self .chat_id , * args , ** kwargs )
391+ return self .bot .send_document (self .chat_id , * args , ** kwargs )
392392
393393 def reply_sticker (self , * args , ** kwargs ):
394394 """
395- Shortcut for ``bot.sendSticker (update.message.chat_id, *args, **kwargs)``
395+ Shortcut for ``bot.send_sticker (update.message.chat_id, *args, **kwargs)``
396396
397397 Keyword Args:
398398 quote (Optional[bool]): If set to ``True``, the sticker is sent as an actual reply to
@@ -405,11 +405,11 @@ def reply_sticker(self, *args, **kwargs):
405405 """
406406
407407 self ._quote (kwargs )
408- return self .bot .sendSticker (self .chat_id , * args , ** kwargs )
408+ return self .bot .send_sticker (self .chat_id , * args , ** kwargs )
409409
410410 def reply_video (self , * args , ** kwargs ):
411411 """
412- Shortcut for ``bot.sendVideo (update.message.chat_id, *args, **kwargs)``
412+ Shortcut for ``bot.send_video (update.message.chat_id, *args, **kwargs)``
413413
414414 Keyword Args:
415415 quote (Optional[bool]): If set to ``True``, the video is sent as an actual reply to
@@ -422,7 +422,7 @@ def reply_video(self, *args, **kwargs):
422422 """
423423
424424 self ._quote (kwargs )
425- return self .bot .sendVideo (self .chat_id , * args , ** kwargs )
425+ return self .bot .send_video (self .chat_id , * args , ** kwargs )
426426
427427 def reply_video_note (self , * args , ** kwargs ):
428428 """
@@ -443,7 +443,7 @@ def reply_video_note(self, *args, **kwargs):
443443
444444 def reply_voice (self , * args , ** kwargs ):
445445 """
446- Shortcut for ``bot.sendVoice (update.message.chat_id, *args, **kwargs)``
446+ Shortcut for ``bot.send_voice (update.message.chat_id, *args, **kwargs)``
447447
448448 Keyword Args:
449449 quote (Optional[bool]): If set to ``True``, the voice is sent as an actual reply to
@@ -456,11 +456,11 @@ def reply_voice(self, *args, **kwargs):
456456 """
457457
458458 self ._quote (kwargs )
459- return self .bot .sendVoice (self .chat_id , * args , ** kwargs )
459+ return self .bot .send_voice (self .chat_id , * args , ** kwargs )
460460
461461 def reply_location (self , * args , ** kwargs ):
462462 """
463- Shortcut for ``bot.sendLocation (update.message.chat_id, *args, **kwargs)``
463+ Shortcut for ``bot.send_location (update.message.chat_id, *args, **kwargs)``
464464
465465 Keyword Args:
466466 quote (Optional[bool]): If set to ``True``, the location is sent as an actual reply to
@@ -473,11 +473,11 @@ def reply_location(self, *args, **kwargs):
473473 """
474474
475475 self ._quote (kwargs )
476- return self .bot .sendLocation (self .chat_id , * args , ** kwargs )
476+ return self .bot .send_location (self .chat_id , * args , ** kwargs )
477477
478478 def reply_venue (self , * args , ** kwargs ):
479479 """
480- Shortcut for ``bot.sendVenue (update.message.chat_id, *args, **kwargs)``
480+ Shortcut for ``bot.send_venue (update.message.chat_id, *args, **kwargs)``
481481
482482 Keyword Args:
483483 quote (Optional[bool]): If set to ``True``, the venue is sent as an actual reply to
@@ -490,11 +490,11 @@ def reply_venue(self, *args, **kwargs):
490490 """
491491
492492 self ._quote (kwargs )
493- return self .bot .sendVenue (self .chat_id , * args , ** kwargs )
493+ return self .bot .send_venue (self .chat_id , * args , ** kwargs )
494494
495495 def reply_contact (self , * args , ** kwargs ):
496496 """
497- Shortcut for ``bot.sendContact (update.message.chat_id, *args, **kwargs)``
497+ Shortcut for ``bot.send_contact (update.message.chat_id, *args, **kwargs)``
498498
499499 Keyword Args:
500500 quote (Optional[bool]): If set to ``True``, the contact is sent as an actual reply to
@@ -507,12 +507,12 @@ def reply_contact(self, *args, **kwargs):
507507 """
508508
509509 self ._quote (kwargs )
510- return self .bot .sendContact (self .chat_id , * args , ** kwargs )
510+ return self .bot .send_contact (self .chat_id , * args , ** kwargs )
511511
512512 def forward (self , chat_id , disable_notification = False ):
513513 """Shortcut for
514514
515- >>> bot.forwardMessage (chat_id=chat_id,
515+ >>> bot.forward_message (chat_id=chat_id,
516516 ... from_chat_id=update.message.chat_id,
517517 ... disable_notification=disable_notification,
518518 ... message_id=update.message.message_id)
@@ -521,7 +521,7 @@ def forward(self, chat_id, disable_notification=False):
521521 :class:`telegram.Message`: On success, instance representing the message forwarded.
522522
523523 """
524- return self .bot .forwardMessage (
524+ return self .bot .forward_message (
525525 chat_id = chat_id ,
526526 from_chat_id = self .chat_id ,
527527 disable_notification = disable_notification ,
@@ -531,7 +531,7 @@ def edit_text(self, *args, **kwargs):
531531 """
532532 Shortcut for
533533
534- >>> bot.editMessageText (chat_id=message.chat_id,
534+ >>> bot.edit_message_text (chat_id=message.chat_id,
535535 ... message_id=message.message_id,
536536 ... *args, **kwargs)
537537
@@ -548,7 +548,7 @@ def edit_caption(self, *args, **kwargs):
548548 """
549549 Shortcut for
550550
551- >>> bot.editMessageCaption (chat_id=message.chat_id,
551+ >>> bot.edit_message_caption (chat_id=message.chat_id,
552552 ... message_id=message.message_id,
553553 ... *args, **kwargs)
554554
@@ -564,7 +564,7 @@ def edit_reply_markup(self, *args, **kwargs):
564564 """
565565 Shortcut for
566566
567- >>> bot.editReplyMarkup (chat_id=message.chat_id,
567+ >>> bot.edit_message_reply_markup (chat_id=message.chat_id,
568568 ... message_id=message.message_id,
569569 ... *args, **kwargs)
570570
0 commit comments