settings and last update line
This commit is contained in:
@@ -74,13 +74,17 @@ final class commands extends core
|
||||
if ($$localization) {
|
||||
// Initialized localization
|
||||
|
||||
// Initializing the title
|
||||
// Initializing the message title
|
||||
$$title = '📋 *' . $$localization['menu_title'] . '*';
|
||||
|
||||
// Initializing the message last update text
|
||||
exec(command: 'git log --oneline $$(git describe --tags --abbrev=0 @^ --always)..@ -1 --format="%at" | xargs -I{} date -d @{} "+%Y.%m.%d %H:%M"', output: $$git);
|
||||
$$update = empty($$git[0]) ? '' : "\n\n🔏 *" . $$localization['menu_update'] . ':* ' . unmarkdown($$git[0]);
|
||||
|
||||
// Sending the message
|
||||
$$context->sendMessage(
|
||||
<<<TXT
|
||||
$$title
|
||||
$$title$$update
|
||||
TXT,
|
||||
[
|
||||
'reply_markup' => [
|
||||
|
||||
Reference in New Issue
Block a user