-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring to support other message types easily
- Loading branch information
abansal88
committed
Mar 30, 2020
1 parent
fcb46dd
commit f8151c7
Showing
6 changed files
with
64 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package utils | ||
|
||
// TEXTMESSAGEKEY identifies a message of text type. | ||
const TEXTMESSAGEKEY = "TextMessage" | ||
|
||
// IMAGEMESSAGEKEY identifies a message of image type. | ||
const IMAGEMESSAGEKEY = "ImageMessage" | ||
|
||
// VIDEOMESSAGEKEY identifies a message of video type. | ||
const VIDEOMESSAGEKEY = "VideoMessage" | ||
|
||
// MESSAGEFOOTER is the identifier added to every message to distinguish the messages sent using CLI. | ||
const MESSAGEFOOTER = "\n sent using github.com/abansal4032/go-whatsapp-client" | ||
|
||
// CONTACTSUFFIX is suffix for the phone number to send the messages. | ||
const CONTACTSUFFIX = "@s.whatsapp.net" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters