Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: laraXgram/Laraquest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.8.2
Choose a base ref
...
head repository: laraXgram/Laraquest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.x.x
Choose a head ref
  • 10 commits
  • 107 files changed
  • 3 contributors

Commits on Nov 1, 2024

  1. syc: bot api 7.11

    AmirHkrg committed Nov 1, 2024
    Copy the full SHA
    1761282 View commit details

Commits on Nov 5, 2024

  1. Copy the full SHA
    7a2d54c View commit details

Commits on Dec 14, 2024

  1. update: Sync to Bot API 8.1

    AmirHkrg committed Dec 14, 2024
    Copy the full SHA
    ee8d4fe View commit details

Commits on Dec 28, 2024

  1. Update README.md

    AmirHkrg authored Dec 28, 2024
    Copy the full SHA
    264c43a View commit details

Commits on Jan 1, 2025

  1. update: Sync to Bot API 8.2

    AmirHkrg committed Jan 1, 2025
    Copy the full SHA
    1952e4c View commit details
  2. Copy the full SHA
    9ec577f View commit details

Commits on Jan 7, 2025

  1. update: update README.md

    AmirHkrg committed Jan 7, 2025
    Copy the full SHA
    87a4273 View commit details

Commits on Jan 21, 2025

  1. refactor: global update_type

    AmirHkrg committed Jan 21, 2025
    Copy the full SHA
    35d0441 View commit details

Commits on Feb 12, 2025

  1. Copy the full SHA
    f52a846 View commit details
  2. update readme

    AmirHkrg committed Feb 12, 2025
    Copy the full SHA
    c81545e View commit details
Showing with 312 additions and 383 deletions.
  1. +25 −8 README.md
  2. +74 −28 src/Methode.php
  3. +2 −2 src/Updates.php
  4. +0 −20 src/Updates/AccentColors.php
  5. +13 −0 src/Updates/AffiliateInfo.php
  6. +1 −3 src/Updates/BackgroundFill.php
  7. +1 −1 src/Updates/BackgroundFillFreeformGradient.php
  8. +1 −4 src/Updates/BackgroundType.php
  9. +2 −3 src/Updates/BotCommandScope.php
  10. +1 −1 src/Updates/BusinessMessagesDeleted.php
  11. +1 −1 src/Updates/BusinessOpeningHours.php
  12. +0 −10 src/Updates/CallbackGame.php
  13. +2 −4 src/Updates/ChatBoostSource.php
  14. +15 −14 src/Updates/ChatFullInfo.php
  15. +1 −5 src/Updates/ChatMember.php
  16. +1 −1 src/Updates/ChatShared.php
  17. +9 −0 src/Updates/CopyTextButton.php
  18. +2 −2 src/Updates/EncryptedPassportElement.php
  19. +2 −3 src/Updates/ExternalReplyInfo.php
  20. +0 −14 src/Updates/FormattingOptions.php
  21. +0 −5 src/Updates/ForumTopicClosed.php
  22. +0 −8 src/Updates/ForumTopicReopened.php
  23. +2 −2 src/Updates/Game.php
  24. +0 −8 src/Updates/GeneralForumTopicHidden.php
  25. +0 −8 src/Updates/GeneralForumTopicUnhidden.php
  26. +14 −0 src/Updates/Gift.php
  27. +9 −0 src/Updates/Gifts.php
  28. +2 −2 src/Updates/Giveaway.php
  29. +0 −9 src/Updates/GiveawayCreated.php
  30. +1 −1 src/Updates/GiveawayWinners.php
  31. +1 −0 src/Updates/InlineKeyboardButton.php
  32. +1 −1 src/Updates/InlineKeyboardMarkup.php
  33. +0 −17 src/Updates/InlineModeMethods.php
  34. +0 −20 src/Updates/InlineModeObjects.php
  35. +1 −12 src/Updates/InlineQueryResult.php
  36. +0 −1 src/Updates/InlineQueryResultArticle.php
  37. +1 −1 src/Updates/InlineQueryResultAudio.php
  38. +1 −1 src/Updates/InlineQueryResultCachedAudio.php
  39. +1 −1 src/Updates/InlineQueryResultCachedDocument.php
  40. +1 −1 src/Updates/InlineQueryResultCachedGif.php
  41. +1 −1 src/Updates/InlineQueryResultCachedMpeg4Gif.php
  42. +1 −1 src/Updates/InlineQueryResultCachedPhoto.php
  43. +1 −1 src/Updates/InlineQueryResultCachedVideo.php
  44. +1 −1 src/Updates/InlineQueryResultCachedVoice.php
  45. +1 −1 src/Updates/InlineQueryResultDocument.php
  46. +1 −1 src/Updates/InlineQueryResultGif.php
  47. +1 −1 src/Updates/InlineQueryResultMpeg4Gif.php
  48. +1 −1 src/Updates/InlineQueryResultPhoto.php
  49. +1 −1 src/Updates/InlineQueryResultVideo.php
  50. +1 −1 src/Updates/InlineQueryResultVoice.php
  51. +0 −5 src/Updates/InputFile.php
  52. +2 −2 src/Updates/InputInvoiceMessageContent.php
  53. +1 −8 src/Updates/InputMedia.php
  54. +1 −1 src/Updates/InputMediaAnimation.php
  55. +1 −1 src/Updates/InputMediaAudio.php
  56. +1 −1 src/Updates/InputMediaDocument.php
  57. +1 −1 src/Updates/InputMediaPhoto.php
  58. +4 −3 src/Updates/InputMediaVideo.php
  59. +1 −5 src/Updates/InputMessageContent.php
  60. +1 −3 src/Updates/InputPaidMedia.php
  61. +3 −2 src/Updates/InputPaidMediaVideo.php
  62. +1 −1 src/Updates/InputPollOption.php
  63. +2 −2 src/Updates/InputSticker.php
  64. +1 −1 src/Updates/InputTextMessageContent.php
  65. +1 −8 src/Updates/MaybeInaccessibleMessage.php
  66. +1 −2 src/Updates/MenuButton.php
  67. +5 −5 src/Updates/Message.php
  68. +1 −4 src/Updates/MessageOrigin.php
  69. +1 −1 src/Updates/MessageReactionCountUpdated.php
  70. +2 −2 src/Updates/MessageReactionUpdated.php
  71. +1 −5 src/Updates/PaidMedia.php
  72. +1 −1 src/Updates/PaidMediaInfo.php
  73. +1 −1 src/Updates/PaidMediaPhoto.php
  74. +1 −1 src/Updates/PassportData.php
  75. +1 −6 src/Updates/PassportElementError.php
  76. +1 −1 src/Updates/PassportElementErrorFiles.php
  77. +1 −1 src/Updates/PassportElementErrorTranslationFiles.php
  78. +3 −3 src/Updates/Poll.php
  79. +1 −1 src/Updates/PollAnswer.php
  80. +1 −1 src/Updates/PollOption.php
  81. +10 −0 src/Updates/PreparedInlineMessage.php
  82. +0 −20 src/Updates/ProfileAccentColors.php
  83. +1 −3 src/Updates/ReactionType.php
  84. +1 −1 src/Updates/ReplyKeyboardMarkup.php
  85. +1 −1 src/Updates/ReplyParameters.php
  86. +1 −2 src/Updates/RevenueWithdrawalState.php
  87. +0 −20 src/Updates/SendingFiles.php
  88. +1 −1 src/Updates/SharedUser.php
  89. +1 −1 src/Updates/ShippingOption.php
  90. +1 −0 src/Updates/StarTransaction.php
  91. +1 −1 src/Updates/StarTransactions.php
  92. +1 −1 src/Updates/StickerSet.php
  93. +4 −2 src/Updates/SuccessfulPayment.php
  94. +1 −1 src/Updates/TextQuote.php
  95. +1 −4 src/Updates/TransactionPartner.php
  96. +11 −0 src/Updates/TransactionPartnerAffiliateProgram.php
  97. +11 −0 src/Updates/TransactionPartnerChat.php
  98. +10 −0 src/Updates/TransactionPartnerTelegramApi.php
  99. +4 −1 src/Updates/TransactionPartnerUser.php
  100. +2 −2 src/Updates/User.php
  101. +1 −1 src/Updates/UserChatBoosts.php
  102. +1 −1 src/Updates/UserProfilePhotos.php
  103. +1 −1 src/Updates/UsersShared.php
  104. +3 −2 src/Updates/Video.php
  105. +1 −1 src/Updates/VideoChatParticipantsInvited.php
  106. +0 −4 src/Updates/VideoChatStarted.php
  107. +1 −1 src/Updates/WebhookInfo.php
33 changes: 25 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
# Laraquest
Sending requests and receiving Telegram updates.
- Bot API Version `8.3`

## Other Versions
- [Laraquest GoLang](https://github.com/laraXgram/Laraquest-Go)
- Laraquest Python
- Laraquest JavaScript
- Laraquest Rust
- Laraquest C#

## Installation:
```bash
composer require laraxgram/laraquest
```
---
## Config:
```php
$_ENV["BOT_TOKEN"] = "123456789:ABcdEfGHigKLMnopQrStuvWXYZ"; // required
$_ENV["BOT_API_SERVER"] = "https://api.telegram.org/"; // default-optional

// Polling
$_ENV["sleep_interval"] = 0.5; // default-optional
$_ENV["timeout"] = 100; // default-optional
$_ENV["limit"] = 100; // default-optional
$_ENV["allow_updates"] = ["*"]; // default-optional
```
---
## Usage:

#### Use Methods:
#### Methods:
Just use trait Method in your class!
```php
use LaraGram\Laraquest\Methode;
@@ -21,7 +42,7 @@ $bot->sendMessage(123456789, 'hello!');
```
---
Just use trait Updates in your class!
#### Use Updates:
#### Updates:
```php
use LaraGram\Laraquest\Updates;

@@ -33,7 +54,7 @@ $bot = new MyBotClass();
$chatID = $bot->message->chat->id;
```
---
#### Use Both:
#### Both:
Just use trait Method and Updates in your class!
```php
use LaraGram\Laraquest\Methode;
@@ -50,11 +71,7 @@ $bot->sendMessage($bot->message->chat->id, 'hello!');

### Long Polling
```php
Laraquest::polling(function(){
// ...
});

Laraquest::polling(function(Laraquest $request){
// ...
$request->sendMessage($request->message->chat->id, "Hello, Laraquest!")
});
```
Loading