- Entri in Circuito Italia solo se hai il fido nel circuito provinciale

- Aggiunta Zona, oltre alla provincia, per visualizzare i vari circuiti della prov
This commit is contained in:
Surya Paolo
2023-12-06 00:41:50 +01:00
parent 6edba03eff
commit d5bc76335f
7 changed files with 53 additions and 34 deletions

View File

@@ -924,7 +924,7 @@ const MyTelegramBot = {
keyb = cl.getInlineKeyboard(myuser.lang, [
{
text: '✅ Abilita fido a ' + groupname,
text: '✅ Abilita fiducia a ' + groupname,
callback_data: InlineConferma.RISPOSTA_SI + myfunc + tools.SEP + myuser.username + tools.SEP + '' + tools.SEP + '' + tools.SEP +
groupid + tools.SEP + groupname,
},
@@ -942,7 +942,7 @@ const MyTelegramBot = {
keyb = cl.getInlineKeyboard(myuser.lang, [
{
text: '✅ Abilita fido a ' + myuser.username,
text: '✅ Abilita fiducia a ' + myuser.username,
callback_data: InlineConferma.RISPOSTA_SI + myfunc + tools.SEP + myuser.username + tools.SEP + '' + tools.SEP + '' + tools.SEP +
groupid,
},
@@ -3752,12 +3752,13 @@ class Telegram {
if (!form) {
form = {
'parse_mode': opt && opt.parse_mode ? opt.parse_mode : 'HTML',
'message_id': msg_id,
'reply_markup': {
'resize_keyboard': true,
'keyboard': await this.getKeyboard(id, menu, mylang),
'keyboard_inline': (opt && opt.keyboard_inline) ? opt.keyboard_inline : undefined,
parse_mode: opt && opt.parse_mode ? opt.parse_mode : 'HTML',
message_id: msg_id,
disable_web_page_preview: true,
reply_markup: {
resize_keyboard: true,
keyboard: await this.getKeyboard(id, menu, mylang),
keyboard_inline: (opt && opt.keyboard_inline) ? opt.keyboard_inline : undefined,
},
};
}
@@ -3980,10 +3981,11 @@ class Telegram {
const lang = this.getlang(msg);
this._inviaMsg(msg.from.id, domanda, {
'reply_markup': {
'resize_keyboard': true,
'one_time_keyboard': true,
'keyboard': this.getmenuKey(MenuYesNo, lang),
disable_web_page_preview: true,
reply_markup: {
resize_keyboard: true,
one_time_keyboard: true,
keyboard: this.getmenuKey(MenuYesNo, lang),
},
});
}
@@ -4005,10 +4007,11 @@ class Telegram {
async msgScegliMenu(msg) {
this._inviaMsg(msg.from.id, getstr(this.getlang(msg), 'MSG_SCEGLI_MENU'), {
'parse_mode': 'HTML',
'reply_markup': {
'resize_keyboard': true,
'keyboard': await this.getKeyboard(msg.from.id, undefined,
parse_mode: 'HTML',
disable_web_page_preview: true,
reply_markup: {
resize_keyboard: true,
keyboard: await this.getKeyboard(msg.from.id, undefined,
this.getlang(msg)),
},
});