This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed and fixed getType in Update object.
Added getType in Message object.
- Loading branch information
Showing
6 changed files
with
187 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Constants; | ||
|
||
class MessageTypes | ||
{ | ||
const TEXT = 'text'; | ||
const AUDIO = 'audio'; | ||
const DOCUMENT = 'document'; | ||
const GAME = 'game'; | ||
const PHOTO = 'photo'; | ||
const STICKER = 'sticker'; | ||
const VIDEO = 'video'; | ||
const VOICE = 'voice'; | ||
const VIDEO_NOTE = 'video_note'; | ||
const NEW_CHAT_MEMBERS = 'new_chat_members'; | ||
const CONTACT = 'contact'; | ||
const LOCATION = 'location'; | ||
const VENUE = 'venue'; | ||
const NEW_CHAT_MEMBER = 'new_chat_member'; | ||
const LEFT_CHAT_MEMBER = 'left_chat_member'; | ||
const NEW_CHAT_TITLE = 'new_chat_title'; | ||
const NEW_CHAT_PHOTO = 'new_chat_photo'; | ||
const DELETE_CHAT_PHOTO = 'delete_chat_photo'; | ||
const GROUP_CHAT_CREATED = 'group_chat_created'; | ||
const SUPERGROUP_CHAT_CREATED = 'supergroup_chat_created'; | ||
const CHANNEL_CHAT_CREATED = 'channel_chat_created'; | ||
const MIGRATE_TO_CHAT_ID = 'migrate_to_chat_id'; | ||
const MIGRATE_FROM_CHAT_ID = 'migrate_from_chat_id'; | ||
const PINNED_MESSAGE = 'pinned_message'; | ||
const INVOICE = 'invoice'; | ||
const SUCCESSFUL_PAYMENT = 'successful_payment'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Constants; | ||
|
||
class UpdateTypes | ||
{ | ||
const MESSAGE = 'message'; | ||
const EDITED_MESSAGE = 'edited_message'; | ||
const CHANNEL_POST = 'channel_post'; | ||
const EDITED_CHANNEL_POST = 'edited_channel_post'; | ||
const INLINE_QUERY = 'inline_query'; | ||
const CHOSEN_INLINE_RESULT = 'chosen_inline_result'; | ||
const CALLBACK_QUERY = 'callback_query'; | ||
const SHIPPING_QUERY = 'shipping_query'; | ||
const PRE_CHECKOUT_QUERY = 'pre_checkout_query'; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters