-
Notifications
You must be signed in to change notification settings - Fork 1
/
inGroupTexters.go
40 lines (34 loc) · 941 Bytes
/
inGroupTexters.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package main
import (
"github.com/NicoNex/echotron"
"log"
)
func (b *bot) inGroupTextNation(chatId int64) {
buttons, err := b.buttonsConfrontoNazioneGroups(0)
if err != nil {
log.Println(err)
return
}
b.lastGroupAttrIndex = 0
b.SendMessageWithKeyboard("❗️❕<b>Dati nazione</b> ❕❗", chatId, buttons, echotron.PARSE_HTML)
}
func (b *bot) inGroupTextRegions(chatId int64) {
buttons, err := b.buttonsZonesGroups(0)
if err != nil {
log.Println(err)
return
}
b.lastZoneIndex = 0
b.SendMessageWithKeyboard("❗️❕<b>Dati regione</b> ❕❗", chatId, buttons, echotron.PARSE_HTML)
}
func (b *bot) inGroupTextProvinces(chatId int64) {
buttons, err := b.buttonsZonesGroupsP(0)
if err != nil {
log.Println(err)
return
}
b.lastGroupProvinceIndex = 0
b.lastGroupRegionIndex = 0
b.lastZoneIndex = 0
b.SendMessageWithKeyboard("❗️❕<b>Dati provincia</b> ❕❗", chatId, buttons, echotron.PARSE_HTML)
}