mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-12-19 08:47:45 +01:00
deploy: 8ba69b0857
This commit is contained in:
parent
11c1248955
commit
997b2b19d8
64
build.html
64
build.html
@ -201,13 +201,16 @@
|
|||||||
<option>Alpine</option>
|
<option>Alpine</option>
|
||||||
<option>CentOS 7</option>
|
<option>CentOS 7</option>
|
||||||
<option>CentOS 8</option>
|
<option>CentOS 8</option>
|
||||||
|
<option>CentOS Stream 9</option>
|
||||||
<option>Debian 8/9</option>
|
<option>Debian 8/9</option>
|
||||||
<option>Debian 10+</option>
|
<option>Debian 10+</option>
|
||||||
|
<option>Fedora 21+</option>
|
||||||
<option>Ubuntu 14</option>
|
<option>Ubuntu 14</option>
|
||||||
<option>Ubuntu 16</option>
|
<option>Ubuntu 16</option>
|
||||||
<option>Ubuntu 18</option>
|
<option>Ubuntu 18</option>
|
||||||
<option>Ubuntu 20</option>
|
<option>Ubuntu 20</option>
|
||||||
<option>Ubuntu 22</option>
|
<option>Ubuntu 22</option>
|
||||||
|
<option>Ubuntu 24</option>
|
||||||
<option>Other</option>
|
<option>Other</option>
|
||||||
</select>
|
</select>
|
||||||
<p></p>
|
<p></p>
|
||||||
@ -260,7 +263,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="buildRootDiv" class="hide">
|
<div id="buildRootDiv" class="hide">
|
||||||
<label><input type="checkbox" id="buildRootCheckbox" onchange="onOptionsChanged()"/>Build from root user (unrecommended).</label>
|
<label><input type="checkbox" id="buildRootCheckbox" onchange="onOptionsChanged()"/>Build from root user (not recommended).</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p></p>
|
<p></p>
|
||||||
@ -353,7 +356,7 @@ function onOptionsChanged() {
|
|||||||
document.getElementById('buildCommandsDiv').style.display = 'block';
|
document.getElementById('buildCommandsDiv').style.display = 'block';
|
||||||
|
|
||||||
var use_clang = os_freebsd || os_openbsd;
|
var use_clang = os_freebsd || os_openbsd;
|
||||||
if (os_linux && linux_distro !== 'Alpine' && !linux_distro.includes('CentOS')) {
|
if (os_linux && linux_distro !== 'Alpine' && !linux_distro.includes('CentOS') && !linux_distro.includes('Fedora')) {
|
||||||
document.getElementById('buildCompilerDiv').style.display = 'block';
|
document.getElementById('buildCompilerDiv').style.display = 'block';
|
||||||
use_clang = document.getElementById('buildCompilerRadioClang').checked;
|
use_clang = document.getElementById('buildCompilerRadioClang').checked;
|
||||||
} else {
|
} else {
|
||||||
@ -446,7 +449,7 @@ function onOptionsChanged() {
|
|||||||
pre_text.push('Install Git, ' + compiler + ', make, CMake >= 3.0.2, OpenSSL-dev, zlib-dev, gperf using your package manager.');
|
pre_text.push('Install Git, ' + compiler + ', make, CMake >= 3.0.2, OpenSSL-dev, zlib-dev, gperf using your package manager.');
|
||||||
}
|
}
|
||||||
if (os_freebsd) {
|
if (os_freebsd) {
|
||||||
pre_text.push('Note that the following instruction is for FreeBSD 11.');
|
pre_text.push('Note that the following instruction is for FreeBSD 13.');
|
||||||
pre_text.push('Note that the following calls to <code>pkg</code> needs to be run as <code>root</code>.');
|
pre_text.push('Note that the following calls to <code>pkg</code> needs to be run as <code>root</code>.');
|
||||||
}
|
}
|
||||||
if (os_openbsd) {
|
if (os_openbsd) {
|
||||||
@ -496,6 +499,19 @@ function onOptionsChanged() {
|
|||||||
return '-10';
|
return '-10';
|
||||||
case 'Ubuntu 22':
|
case 'Ubuntu 22':
|
||||||
return '-14';
|
return '-14';
|
||||||
|
case 'Ubuntu 24':
|
||||||
|
return '-18';
|
||||||
|
default:
|
||||||
|
return ''; // use default version
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function getLibcplusplusVersionSuffix() {
|
||||||
|
switch (linux_distro) {
|
||||||
|
case 'Ubuntu 20':
|
||||||
|
case 'Ubuntu 22':
|
||||||
|
case 'Ubuntu 24':
|
||||||
|
return getClangVersionSuffix();
|
||||||
default:
|
default:
|
||||||
return ''; // use default version
|
return ''; // use default version
|
||||||
}
|
}
|
||||||
@ -514,23 +530,32 @@ function onOptionsChanged() {
|
|||||||
commands.push(sudo + 'apk update');
|
commands.push(sudo + 'apk update');
|
||||||
commands.push(sudo + 'apk upgrade');
|
commands.push(sudo + 'apk upgrade');
|
||||||
var packages = 'alpine-sdk linux-headers git zlib-dev openssl-dev gperf cmake';
|
var packages = 'alpine-sdk linux-headers git zlib-dev openssl-dev gperf cmake';
|
||||||
commands.push(sudo + 'apk add --update ' + packages);
|
commands.push(sudo + 'apk add ' + packages);
|
||||||
break;
|
break;
|
||||||
case 'CentOS 7':
|
case 'CentOS 7':
|
||||||
case 'CentOS 8':
|
|
||||||
commands.push(sudo + 'yum update -y');
|
commands.push(sudo + 'yum update -y');
|
||||||
var packages = 'gcc-c++ make git zlib-devel openssl-devel';
|
commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release');
|
||||||
if (linux_distro === 'CentOS 7') {
|
commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++');
|
||||||
commands.push(sudo + 'yum install -y centos-release-scl-rh epel-release');
|
cmake = 'cmake3';
|
||||||
commands.push(sudo + 'yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++');
|
var packages = 'gcc-c++ make git zlib-devel openssl-devel gperf ' + cmake;
|
||||||
cmake = 'cmake3';
|
|
||||||
packages += ' gperf';
|
|
||||||
} else {
|
|
||||||
commands.push(sudo + 'dnf --enablerepo=powertools install gperf');
|
|
||||||
}
|
|
||||||
packages += ' ' + cmake;
|
|
||||||
commands.push(sudo + 'yum install -y ' + packages);
|
commands.push(sudo + 'yum install -y ' + packages);
|
||||||
break;
|
break;
|
||||||
|
case 'CentOS 8':
|
||||||
|
case 'CentOS Stream 9':
|
||||||
|
commands.push(sudo + 'dnf update -y');
|
||||||
|
if (linux_distro === 'CentOS 8') {
|
||||||
|
commands.push(sudo + 'dnf --enablerepo=powertools install gperf');
|
||||||
|
} else {
|
||||||
|
commands.push(sudo + 'dnf --enablerepo=crb install gperf');
|
||||||
|
}
|
||||||
|
var packages = 'gcc-c++ make git zlib-devel openssl-devel cmake';
|
||||||
|
commands.push(sudo + 'dnf install -y ' + packages);
|
||||||
|
break;
|
||||||
|
case 'Fedora 21+':
|
||||||
|
commands.push(sudo + 'dnf update -y');
|
||||||
|
var packages = 'gperf gcc-c++ make git zlib-devel openssl-devel cmake';
|
||||||
|
commands.push(sudo + 'dnf install -y ' + packages);
|
||||||
|
break;
|
||||||
case 'Debian 8/9':
|
case 'Debian 8/9':
|
||||||
case 'Debian 10+':
|
case 'Debian 10+':
|
||||||
case 'Ubuntu 14':
|
case 'Ubuntu 14':
|
||||||
@ -538,6 +563,7 @@ function onOptionsChanged() {
|
|||||||
case 'Ubuntu 18':
|
case 'Ubuntu 18':
|
||||||
case 'Ubuntu 20':
|
case 'Ubuntu 20':
|
||||||
case 'Ubuntu 22':
|
case 'Ubuntu 22':
|
||||||
|
case 'Ubuntu 24':
|
||||||
if (linux_distro.includes('Debian') && !use_root) {
|
if (linux_distro.includes('Debian') && !use_root) {
|
||||||
commands.push('su -');
|
commands.push('su -');
|
||||||
}
|
}
|
||||||
@ -553,9 +579,9 @@ function onOptionsChanged() {
|
|||||||
packages += ' cmake';
|
packages += ' cmake';
|
||||||
}
|
}
|
||||||
if (use_clang) {
|
if (use_clang) {
|
||||||
packages += ' clang' + getClangVersionSuffix() + ' libc++-dev';
|
packages += ' clang' + getClangVersionSuffix() + ' libc++' + getLibcplusplusVersionSuffix() + '-dev';
|
||||||
if (linux_distro === 'Debian 10+' || linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22') {
|
if (linux_distro === 'Debian 10+' || linux_distro === 'Ubuntu 18' || linux_distro === 'Ubuntu 20' || linux_distro === 'Ubuntu 22' || linux_distro === 'Ubuntu 24') {
|
||||||
packages += ' libc++abi-dev';
|
packages += ' libc++abi' + getLibcplusplusVersionSuffix() + '-dev';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
packages += ' g++';
|
packages += ' g++';
|
||||||
@ -587,7 +613,7 @@ function onOptionsChanged() {
|
|||||||
commands.push('su -');
|
commands.push('su -');
|
||||||
}
|
}
|
||||||
commands.push('export PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r)/All');
|
commands.push('export PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r)/All');
|
||||||
var packages = 'git gperf cmake openssl gcc12-libs mozilla-rootcerts-openssl';
|
var packages = 'git gperf pcre2 cmake openssl gcc12-libs mozilla-rootcerts-openssl';
|
||||||
commands.push('pkg_add ' + packages);
|
commands.push('pkg_add ' + packages);
|
||||||
if (!use_root) {
|
if (!use_root) {
|
||||||
commands.push('exit');
|
commands.push('exit');
|
||||||
|
3
dist/swagger-ui-bundle.js
vendored
3
dist/swagger-ui-bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui-bundle.js.map
vendored
2
dist/swagger-ui-bundle.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui-es-bundle-core.js
vendored
2
dist/swagger-ui-es-bundle-core.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui-es-bundle-core.js.map
vendored
2
dist/swagger-ui-es-bundle-core.js.map
vendored
File diff suppressed because one or more lines are too long
3
dist/swagger-ui-es-bundle.js
vendored
3
dist/swagger-ui-es-bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui-es-bundle.js.map
vendored
2
dist/swagger-ui-es-bundle.js.map
vendored
File diff suppressed because one or more lines are too long
3
dist/swagger-ui-standalone-preset.js
vendored
3
dist/swagger-ui-standalone-preset.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui-standalone-preset.js.map
vendored
2
dist/swagger-ui-standalone-preset.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui.css
vendored
2
dist/swagger-ui.css
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui.css.map
vendored
2
dist/swagger-ui.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui.js
vendored
2
dist/swagger-ui.js
vendored
File diff suppressed because one or more lines are too long
2
dist/swagger-ui.js.map
vendored
2
dist/swagger-ui.js.map
vendored
File diff suppressed because one or more lines are too long
@ -264,6 +264,10 @@ paths:
|
|||||||
last_name:
|
last_name:
|
||||||
description: The last name of the user; 0-64 characters.
|
description: The last name of the user; 0-64 characters.
|
||||||
type: string
|
type: string
|
||||||
|
disable_notification:
|
||||||
|
description: Disables "user joined Telegram" notification for other users that have the contact in their contact list.
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- first_name
|
- first_name
|
||||||
multipart/form-data:
|
multipart/form-data:
|
||||||
@ -276,6 +280,10 @@ paths:
|
|||||||
last_name:
|
last_name:
|
||||||
description: The last name of the user; 0-64 characters.
|
description: The last name of the user; 0-64 characters.
|
||||||
type: string
|
type: string
|
||||||
|
disable_notification:
|
||||||
|
description: Disables "user joined Telegram" notification for other users that have the contact in their contact list.
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- first_name
|
- first_name
|
||||||
application/json:
|
application/json:
|
||||||
@ -288,6 +296,10 @@ paths:
|
|||||||
last_name:
|
last_name:
|
||||||
description: The last name of the user; 0-64 characters.
|
description: The last name of the user; 0-64 characters.
|
||||||
type: string
|
type: string
|
||||||
|
disable_notification:
|
||||||
|
description: Disables "user joined Telegram" notification for other users that have the contact in their contact list.
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
required:
|
required:
|
||||||
- first_name
|
- first_name
|
||||||
required: true
|
required: true
|
||||||
@ -1471,6 +1483,10 @@ paths:
|
|||||||
query:
|
query:
|
||||||
description: Query to search for.
|
description: Query to search for.
|
||||||
type: string
|
type: string
|
||||||
|
only_in_channels:
|
||||||
|
description: Search for messages only in channels
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
offset_date:
|
offset_date:
|
||||||
description: The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message.
|
description: The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message.
|
||||||
type: integer
|
type: integer
|
||||||
@ -1505,6 +1521,10 @@ paths:
|
|||||||
query:
|
query:
|
||||||
description: Query to search for.
|
description: Query to search for.
|
||||||
type: string
|
type: string
|
||||||
|
only_in_channels:
|
||||||
|
description: Search for messages only in channels
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
offset_date:
|
offset_date:
|
||||||
description: The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message.
|
description: The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message.
|
||||||
type: integer
|
type: integer
|
||||||
@ -1539,6 +1559,10 @@ paths:
|
|||||||
query:
|
query:
|
||||||
description: Query to search for.
|
description: Query to search for.
|
||||||
type: string
|
type: string
|
||||||
|
only_in_channels:
|
||||||
|
description: Search for messages only in channels
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
offset_date:
|
offset_date:
|
||||||
description: The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message.
|
description: The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message.
|
||||||
type: integer
|
type: integer
|
||||||
|
Loading…
Reference in New Issue
Block a user