@@ -359,6 +359,24 @@ components.
359359
360360 .. versionadded :: 0.3
361361
362+ .. py :method :: chat(id )
363+
364+ Get the :py:class: `~botogram.Chat ` object of the chat with the ID you
365+ provided to this method. You can use this to get information about a chat
366+ you know about, or to send messages to other chats:
367+
368+ .. code-block :: python
369+
370+ BROADCAST_TO = [123 , 321 , 132 ] # List of chat IDs
371+
372+ @bot.command (" broadcast" )
373+ def broadcast_command (bot , chat , message , args ):
374+ """ Broadcast a message to multiple chats"""
375+ to_send = " " .join(args)
376+
377+ for chat_id in BROADCAST_TO :
378+ bot.chat(chat_id).send(to_send)
379+
362380 .. py :method :: send(chat, message[, preview=True , reply_to=None , syntax=None , extra=None , notify=True ])
363381
364382 This method sends a message to a specific chat. The chat must be
@@ -396,6 +414,8 @@ components.
396414
397415 Now the method returns the sent message
398416
417+ .. deprecated :: 0.3 it will be removed in botogram 1.0
418+
399419 .. py :method :: send_photo(chat, path[, caption=" " , reply_to=None , extra=None , notify=True ])
400420
401421 This method sends a photo to a specific chat. The chat must be identified
@@ -427,6 +447,8 @@ components.
427447
428448 Now the method returns the sent message
429449
450+ .. deprecated :: 0.3 it will be removed in botogram 1.0
451+
430452 .. py :method :: send_audio(chat, path, [duration=None , performer=None , title=None , reply_to=None , extra=None , notify=True ])
431453
432454 This method sends an audio track to a specific chat. The chat must be
@@ -463,6 +485,8 @@ components.
463485
464486 Now the method returns the sent message
465487
488+ .. deprecated :: 0.3 it will be removed in botogram 1.0
489+
466490 .. py :method :: send_voice(chat, path, [duration=None , reply_to=None , extra=None , notify=True ])
467491
468492 This method sends a voice message to a specific chat. The chat must be
@@ -497,6 +521,8 @@ components.
497521
498522 Now the method returns the sent message
499523
524+ .. deprecated :: 0.3 it will be removed in botogram 1.0
525+
500526 .. py :method :: send_video(chat, path, [duration=None , caption=None , reply_to=None , extra=None , notify=True ])
501527
502528 This method sends a video to a specific chat. The chat must be identified
@@ -532,6 +558,8 @@ components.
532558
533559 Now the method returns the sent message
534560
561+ .. deprecated :: 0.3 it will be removed in botogram 1.0
562+
535563 .. py :method :: send_file(chat, path, [reply_to=None , extra=None , notify=True ])
536564
537565 This method sends a generic file to a specific chat. The chat must be
@@ -564,6 +592,8 @@ components.
564592
565593 Now the method returns the sent message
566594
595+ .. deprecated :: 0.3 it will be removed in botogram 1.0
596+
567597 .. py :method :: send_location(chat, latitude, longitude, [reply_to=None , extra=None , notify=True ])
568598
569599 This method sends a geographic location to a specific chat. The chat must
@@ -597,6 +627,8 @@ components.
597627
598628 Now the method returns the sent message
599629
630+ .. deprecated :: 0.3 it will be removed in botogram 1.0
631+
600632 .. py :method :: send_sticker(sticker, [reply_to=None , extra=None , notify=True ])
601633
602634 This method sends a sticker to a specific chat chat (in webp format). The
@@ -629,6 +661,8 @@ components.
629661
630662 Now the method returns the sent message
631663
664+ .. deprecated :: 0.3 it will be removed in botogram 1.0
665+
632666 .. py :attribute :: hide_commands
633667
634668 This attribute is now deprecated, use the ``hidden `` argument of the
0 commit comments