def __init__(self, type, id, voice_url, title, caption=None, parse_mode=None, voice_duration=None, reply_markup=None, input_message_content=None):
        """
        Represents a link to a voice recording in an .ogg container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
        Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

        https://core.telegram.org/bots/api#inlinequeryresultvoice
        

        Parameters:
        
        :param type: Type of the result, must be voice
        :type  type: str|unicode
        
        :param id: Unique identifier for this result, 1-64 bytes
        :type  id: str|unicode
        
        :param voice_url: A valid URL for the voice recording
        :type  voice_url: str|unicode
        
        :param title: Recording title
        :type  title: str|unicode
        

        Optional keyword parameters:
        
        :param caption: Optional. Caption, 0-1024 characters
        :type  caption: str|unicode
        
        :param parse_mode: Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
        :type  parse_mode: str|unicode
        
        :param voice_duration: Optional. Recording duration in seconds
        :type  voice_duration: int
        
        :param reply_markup: Optional. Inline keyboard attached to the message
        :type  reply_markup: pytgbot.api_types.sendable.reply_markup.InlineKeyboardMarkup
        
        :param input_message_content: Optional. Content of the message to be sent instead of the voice recording
        :type  input_message_content: pytgbot.api_types.sendable.inline.InputMessageContent
        """
        super(InlineQueryResultVoice, self).__init__()
        from pytgbot.api_types.sendable.inline import InputMessageContent
        from pytgbot.api_types.sendable.reply_markup import InlineKeyboardMarkup
        
        assert_type_or_raise(type, unicode_type, parameter_name="type")
        self.type = type
        
        assert_type_or_raise(id, unicode_type, parameter_name="id")
        self.id = id
        
        assert_type_or_raise(voice_url, unicode_type, parameter_name="voice_url")
        self.voice_url = voice_url
        
        assert_type_or_raise(title, unicode_type, parameter_name="title")
        self.title = title
        
        assert_type_or_raise(caption, None, unicode_type, parameter_name="caption")
        self.caption = caption
        
        assert_type_or_raise(parse_mode, None, unicode_type, parameter_name="parse_mode")
        self.parse_mode = parse_mode
        
        assert_type_or_raise(voice_duration, None, int, parameter_name="voice_duration")
        self.voice_duration = voice_duration
        
        assert_type_or_raise(reply_markup, None, InlineKeyboardMarkup, parameter_name="reply_markup")
        self.reply_markup = reply_markup
        
        assert_type_or_raise(input_message_content, None, InputMessageContent, parameter_name="input_message_content")
        self.input_message_content = input_message_content
def __init__ ( self , type , id , voice_url , title , caption = None , parse_mode = None , voice_duration = None , reply_markup = None , input_message_content = None ) : super ( InlineQueryResultVoice , self ) . __init__ ( ) from pytgbot . api_types . sendable . inline import InputMessageContent from pytgbot . api_types . sendable . reply_markup import InlineKeyboardMarkup assert_type_or_raise ( type , unicode_type , parameter_name = "type" ) self . type = type assert_type_or_raise ( id , unicode_type , parameter_name = "id" ) self . id = id assert_type_or_raise ( voice_url , unicode_type , parameter_name = "voice_url" ) self . voice_url = voice_url assert_type_or_raise ( title , unicode_type , parameter_name = "title" ) self . title = title assert_type_or_raise ( caption , None , unicode_type , parameter_name = "caption" ) self . caption = caption assert_type_or_raise ( parse_mode , None , unicode_type , parameter_name = "parse_mode" ) self . parse_mode = parse_mode assert_type_or_raise ( voice_duration , None , int , parameter_name = "voice_duration" ) self . voice_duration = voice_duration assert_type_or_raise ( reply_markup , None , InlineKeyboardMarkup , parameter_name = "reply_markup" ) self . reply_markup = reply_markup assert_type_or_raise ( input_message_content , None , InputMessageContent , parameter_name = "input_message_content" ) self . input_message_content = input_message_content
Represents a link to a voice recording in an .ogg container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.
        Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

        https://core.telegram.org/bots/api#inlinequeryresultvoice
        

        Parameters:
        
        :param type: Type of the result, must be voice
        :type  type: str|unicode
        
        :param id: Unique identifier for this result, 1-64 bytes
        :type  id: str|unicode
        
        :param voice_url: A valid URL for the voice recording
        :type  voice_url: str|unicode
        
        :param title: Recording title
        :type  title: str|unicode
        

        Optional keyword parameters:
        
        :param caption: Optional. Caption, 0-1024 characters
        :type  caption: str|unicode
        
        :param parse_mode: Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
        :type  parse_mode: str|unicode
        
        :param voice_duration: Optional. Recording duration in seconds
        :type  voice_duration: int
        
        :param reply_markup: Optional. Inline keyboard attached to the message
        :type  reply_markup: pytgbot.api_types.sendable.reply_markup.InlineKeyboardMarkup
        
        :param input_message_content: Optional. Content of the message to be sent instead of the voice recording
        :type  input_message_content: pytgbot.api_types.sendable.inline.InputMessageContent