Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
f65006c5
Commit
f65006c5
authored
Apr 15, 2016
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'editMessageText', 'editMessageCaption', 'editMessageReplyMarkup' methods
parent
60d14ab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
Request.php
src/Request.php
+51
-0
No files found.
src/Request.php
View file @
f65006c5
...
...
@@ -59,6 +59,9 @@ class Request
'unbanChatMember'
,
'answerCallbackQuery'
,
'answerInlineQuery'
,
'editMessageText'
,
'editMessageCaption'
,
'editMessageReplyMarkup'
];
/**
...
...
@@ -697,6 +700,54 @@ class Request
return
self
::
send
(
'answerInlineQuery'
,
$data
);
}
/**
* Edit message text
*
* @param array $data
*
* @return mixed
*/
public
static
function
editMessageText
(
array
$data
)
{
if
(
empty
(
$data
))
{
throw
new
TelegramException
(
'Data is empty!'
);
}
return
self
::
send
(
'editMessageText'
,
$data
);
}
/**
* Edit message caption
*
* @param array $data
*
* @return mixed
*/
public
static
function
editMessageCaption
(
array
$data
)
{
if
(
empty
(
$data
))
{
throw
new
TelegramException
(
'Data is empty!'
);
}
return
self
::
send
(
'editMessageCaption'
,
$data
);
}
/**
* Edit message reply markup
*
* @param array $data
*
* @return mixed
*/
public
static
function
editMessageReplyMarkup
(
array
$data
)
{
if
(
empty
(
$data
))
{
throw
new
TelegramException
(
'Data is empty!'
);
}
return
self
::
send
(
'editMessageReplyMarkup'
,
$data
);
}
/**
* Return an empty Server Response
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment