pyrobale.objects.inputmedias

Classes

InputMedia

Base class for all input media types.

InputMediaPhoto

Represents a photo to be sent.

InputMediaVideo

Represents a video to be sent.

InputMediaAnimation

Represents an animation to be sent.

InputMediaAudio

Represents an audio file to be sent.

InputMediaDocument

Represents a document to be sent.

Module Contents

class pyrobale.objects.inputmedias.InputMedia(media, caption=None)[source]

Base class for all input media types.

This is an abstract class that should not be used directly.

media[source]
caption = None[source]
class pyrobale.objects.inputmedias.InputMediaPhoto(media, caption=None)[source]

Bases: InputMedia

Represents a photo to be sent.

This object represents a photo that needs to be sent to Bale.

type = 'photo'[source]
class pyrobale.objects.inputmedias.InputMediaVideo(media, caption=None, thumbnail=None, width=None, height=None, duration=None)[source]

Bases: InputMedia

Represents a video to be sent.

This object represents a video that needs to be sent to Bale.

type = 'video'[source]
thumbnail = None[source]
width = None[source]
height = None[source]
duration = None[source]
class pyrobale.objects.inputmedias.InputMediaAnimation(media, caption=None, thumbnail=None, width=None, height=None, duration=None)[source]

Bases: InputMedia

Represents an animation to be sent.

This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) that needs to be sent to Bale.

type = 'animation'[source]
thumbnail = None[source]
width = None[source]
height = None[source]
duration = None[source]
class pyrobale.objects.inputmedias.InputMediaAudio(media, caption=None, thumbnail=None, duration=None, title=None)[source]

Bases: InputMedia

Represents an audio file to be sent.

This object represents an audio file that needs to be sent to Bale. The file will be treated as music.

type = 'audio'[source]
thumbnail = None[source]
duration = None[source]
title = None[source]
class pyrobale.objects.inputmedias.InputMediaDocument(media, caption=None, thumbnail=None)[source]

Bases: InputMedia

Represents a document to be sent.

This object represents a general file (document) that needs to be sent to Bale.

type = 'document'[source]
thumbnail = None[source]