We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a8825 commit 53c4e0aCopy full SHA for 53c4e0a
logging.go
@@ -30,6 +30,11 @@ type Logger interface {
30
Printf(format string, a ...interface{})
31
}
32
33
+// SenderInfo is the convenience function to log the sender info in the context.
34
+func SenderInfo(c tb.Context) string {
35
+ return Userinfo(c.Sender())
36
+}
37
+
38
// Userinfo returns the user info.
39
func Userinfo(u *tb.User) string {
40
if u == nil {
0 commit comments