send dc message when contacts are shared in TG
This commit is contained in:
parent
edabc2b597
commit
e95c49e487
@ -505,6 +505,13 @@ func (this *NTFServer) HandleGroupMessage(update telegram.Update) error {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if update.Message.Contact != nil {
|
||||||
|
return this.HubSay(userID, fmt.Sprintf("Contact %s %s %s %s",
|
||||||
|
update.Message.Contact.FirstName, update.Message.Contact.LastName,
|
||||||
|
update.Message.Contact.PhoneNumber,
|
||||||
|
update.Message.Caption))
|
||||||
|
}
|
||||||
|
|
||||||
if update.Message.Location != nil {
|
if update.Message.Location != nil {
|
||||||
return this.HubSay(userID, fmt.Sprintf(
|
return this.HubSay(userID, fmt.Sprintf(
|
||||||
"Latitude %f Longitude %f %s",
|
"Latitude %f Longitude %f %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user