@@ -49,15 +49,16 @@ class TextSendMessage(SendMessage):
49
49
https://developers.line.biz/en/reference/messaging-api/#text-message
50
50
"""
51
51
52
- def __init__ (self , text = None , emojis = None , quick_reply = None , ** kwargs ):
52
+ def __init__ (self , text = None , emojis = None , quick_reply = None , sender = None , ** kwargs ):
53
53
"""__init__ method.
54
54
55
55
:param str text: Message text
56
56
:param quick_reply: QuickReply object
57
57
:type quick_reply: T <= :py:class:`linebot.models.send_messages.QuickReply`
58
+ :type sender: T <= :py:class:`linebot.models.send_messages.Sender`
58
59
:param kwargs:
59
60
"""
60
- super (TextSendMessage , self ).__init__ (quick_reply = quick_reply , ** kwargs )
61
+ super (TextSendMessage , self ).__init__ (quick_reply = quick_reply , sender = sender , ** kwargs )
61
62
62
63
self .type = 'text'
63
64
self .text = text
@@ -81,7 +82,7 @@ class ImageSendMessage(SendMessage):
81
82
"""
82
83
83
84
def __init__ (self , original_content_url = None , preview_image_url = None ,
84
- quick_reply = None , ** kwargs ):
85
+ quick_reply = None , sender = None , ** kwargs ):
85
86
"""__init__ method.
86
87
87
88
:param str original_content_url: Image URL.
@@ -96,9 +97,10 @@ def __init__(self, original_content_url=None, preview_image_url=None,
96
97
Max: 1 MB
97
98
:param quick_reply: QuickReply object
98
99
:type quick_reply: T <= :py:class:`linebot.models.send_messages.QuickReply`
100
+ :type sender: T <= :py:class:`linebot.models.send_messages.Sender`
99
101
:param kwargs:
100
102
"""
101
- super (ImageSendMessage , self ).__init__ (quick_reply = quick_reply , ** kwargs )
103
+ super (ImageSendMessage , self ).__init__ (quick_reply = quick_reply , sender = sender , ** kwargs )
102
104
103
105
self .type = 'image'
104
106
self .original_content_url = original_content_url
@@ -112,7 +114,7 @@ class VideoSendMessage(SendMessage):
112
114
"""
113
115
114
116
def __init__ (self , original_content_url = None , preview_image_url = None ,
115
- tracking_id = None , quick_reply = None , ** kwargs ):
117
+ tracking_id = None , quick_reply = None , sender = None , ** kwargs ):
116
118
"""__init__ method.
117
119
118
120
:param str original_content_url: URL of video file.
@@ -124,9 +126,10 @@ def __init__(self, original_content_url=None, preview_image_url=None,
124
126
Max character limit: 100.
125
127
:param quick_reply: QuickReply object
126
128
:type quick_reply: T <= :py:class:`linebot.models.send_messages.QuickReply`
129
+ :type sender: T <= :py:class:`linebot.models.send_messages.Sender`
127
130
:param kwargs:
128
131
"""
129
- super (VideoSendMessage , self ).__init__ (quick_reply = quick_reply , ** kwargs )
132
+ super (VideoSendMessage , self ).__init__ (quick_reply = quick_reply , sender = sender , ** kwargs )
130
133
131
134
self .type = 'video'
132
135
self .original_content_url = original_content_url
@@ -140,17 +143,19 @@ class AudioSendMessage(SendMessage):
140
143
https://developers.line.biz/en/reference/messaging-api/#audio-message
141
144
"""
142
145
143
- def __init__ (self , original_content_url = None , duration = None , quick_reply = None , ** kwargs ):
146
+ def __init__ (self , original_content_url = None , duration = None , quick_reply = None ,
147
+ sender = None , ** kwargs ):
144
148
"""__init__ method.
145
149
146
150
:param str original_content_url: URL of audio file. HTTPS.
147
151
m4a. Less than 1 minute. Max 10 MB.
148
152
:param long duration: Length of audio file (milliseconds).
149
153
:param quick_reply: QuickReply object
150
154
:type quick_reply: T <= :py:class:`linebot.models.send_messages.QuickReply`
155
+ :type sender: T <= :py:class:`linebot.models.send_messages.Sender`
151
156
:param kwargs:
152
157
"""
153
- super (AudioSendMessage , self ).__init__ (quick_reply = quick_reply , ** kwargs )
158
+ super (AudioSendMessage , self ).__init__ (quick_reply = quick_reply , sender = sender , ** kwargs )
154
159
155
160
self .type = 'audio'
156
161
self .original_content_url = original_content_url
@@ -164,7 +169,7 @@ class LocationSendMessage(SendMessage):
164
169
"""
165
170
166
171
def __init__ (self , title = None , address = None , latitude = None , longitude = None ,
167
- quick_reply = None , ** kwargs ):
172
+ quick_reply = None , sender = None , ** kwargs ):
168
173
"""__init__ method.
169
174
170
175
:param str title: Title
@@ -173,9 +178,10 @@ def __init__(self, title=None, address=None, latitude=None, longitude=None,
173
178
:param float longitude: Longitude
174
179
:param quick_reply: QuickReply object
175
180
:type quick_reply: T <= :py:class:`linebot.models.send_messages.QuickReply`
181
+ :type sender: T <= :py:class:`linebot.models.send_messages.Sender`
176
182
:param kwargs:
177
183
"""
178
- super (LocationSendMessage , self ).__init__ (quick_reply = quick_reply , ** kwargs )
184
+ super (LocationSendMessage , self ).__init__ (quick_reply = quick_reply , sender = sender , ** kwargs )
179
185
180
186
self .type = 'location'
181
187
self .title = title
@@ -190,16 +196,17 @@ class StickerSendMessage(SendMessage):
190
196
https://developers.line.biz/en/reference/messaging-api/#sticker-message
191
197
"""
192
198
193
- def __init__ (self , package_id = None , sticker_id = None , quick_reply = None , ** kwargs ):
199
+ def __init__ (self , package_id = None , sticker_id = None , quick_reply = None , sender = None , ** kwargs ):
194
200
"""__init__ method.
195
201
196
202
:param str package_id: Package ID
197
203
:param str sticker_id: Sticker ID
198
204
:param quick_reply: QuickReply object
199
205
:type quick_reply: T <= :py:class:`linebot.models.send_messages.QuickReply`
206
+ :type sender: T <= :py:class:`linebot.models.send_messages.Sender`
200
207
:param kwargs:
201
208
"""
202
- super (StickerSendMessage , self ).__init__ (quick_reply = quick_reply , ** kwargs )
209
+ super (StickerSendMessage , self ).__init__ (quick_reply = quick_reply , sender = sender , ** kwargs )
203
210
204
211
self .type = 'sticker'
205
212
self .package_id = package_id
0 commit comments