You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`token($token)`: (string) Bot token if you wish to override the default token for a specific notification (optional).
222
227
-`content('')`: (string) Notification message, supports markdown. For more information on supported markdown styles, check out these [docs](https://telegram-bot-sdk.readme.io/reference#section-formatting-options).
223
-
-`button($text, $url)`: (string) Adds an inline "Call to Action" button. You can add as many as you want and they'll be placed 2 in a row.
228
+
-`view($view, $data = [], $mergeData = [])`: (string) Blade template name with Telegram supported HTML or Markdown syntax content if you wish to use a view file instead of the `content()` method.
229
+
-`button($text, $url)`: (string) Adds an inline "Call to Action" button. You can add as many as you want, and they'll be placed 2 in a row.
224
230
-`disableNotification($disableNotification = true)`: (bool) Send the message silently. Users will receive a notification with no sound.
225
231
-`options([])`: (array) Allows you to add additional or override `sendMessage` payload (A Telegram Bot API method used to send message internally). For more information on supported parameters, check out these [docs](https://telegram-bot-sdk.readme.io/docs/sendmessage).
226
232
227
233
### Available Location methods
228
234
229
235
-`to($chatId)`: (integer) Recipient's chat id.
236
+
-`token($token)`: (string) Bot token if you wish to override the default token for a specific notification (optional).
230
237
-`latitude($latitude)`: (float|string) Latitude of the location.
231
238
-`longitude($longitude)`: (float|string) Longitude of the location.
232
-
-`button($text, $url)`: (string) Adds an inline "Call to Action" button. You can add as many as you want and they'll be placed 2 in a row.
239
+
-`button($text, $url)`: (string) Adds an inline "Call to Action" button. You can add as many as you want, and they'll be placed 2 in a row.
233
240
-`disableNotification($disableNotification = true)`: (bool) Send the message silently. Users will receive a notification with no sound.
234
241
-`options([])`: (array) Allows you to add additional or override the payload.
235
242
236
243
### Available File methods
237
244
238
245
-`to($chatId)`: (integer) Recipient's chat id.
246
+
-`token($token)`: (string) Bot token if you wish to override the default token for a specific notification (optional).
239
247
-`content('')`: (string) File caption, supports markdown. For more information on supported markdown styles, check out these [docs](https://telegram-bot-sdk.readme.io/reference#section-formatting-options).
248
+
-`view($view, $data = [], $mergeData = [])`: (string) Blade template name with Telegram supported HTML or Markdown syntax content if you wish to use a view file instead of the `content()` method.
240
249
-`file($file, $type, $filename = null)`: Local file path or remote URL, `$type` of the file (Ex:`photo`, `audio`, `document`, `video`, `animation`, `voice`, `video_note_`) and optionally filename with extension. Ex: `sample.pdf`. You can use helper methods instead of using this to make it easier to work with file attachment.
241
250
-`photo($file)`: Helper method to attach a photo.
242
251
-`audio($file)`: Helper method to attach an audio file (MP3 file).
0 commit comments