send dc message when contacts are shared in TG

This commit is contained in:
mappu 2018-06-10 14:16:12 +12:00
parent edabc2b597
commit e95c49e487

View File

@ -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 {
return this.HubSay(userID, fmt.Sprintf(
"Latitude %f Longitude %f %s",