updated documentation for send_message

Signed-off-by: klux2 <k.lux.gm@gmail.com>
This commit is contained in:
klux2 2019-05-12 15:16:13 +02:00
parent 976a4b9e3a
commit d2989e4857

View file

@ -130,8 +130,9 @@ async def send_status(text):
def send_message(bot_obj: DelegatorBot, chat_id: int, msg: str, parse_mode: Any = None,
disable_web_page_preview: Any = None, disable_notification: Any = None,
reply_to_message_id: Any = None, reply_markup: Any = None) -> None:
disable_web_page_preview: bool = None, disable_notification: bool = None,
reply_to_message_id: int = None, reply_markup: Any = None) -> None:
"""Sends a message with bot_obj to chat_id. See https://core.telegram.org/bots/api#sendmessage for details."""
try:
bot_obj.sendMessage(chat_id=chat_id, text=msg, parse_mode=parse_mode,
disable_web_page_preview=disable_web_page_preview,