p
wechaty
package wechaty
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
class
JavaDingDongBot extends AnyRef
- Since
2020-06-04
- class Wechaty extends LazyLogging with PuppetResolver
- class WechatyOptions extends AnyRef
-
trait
WechatyPlugin extends AnyRef
wechaty plugin
wechaty plugin
- Since
2020-06-19
Value Members
-
object
DingDongBot
- Since
2020-06-02
-
object
DingDongPadplusBot
- Since
2020-06-02
-
object
Wechaty
* Main bot class.
* Main bot class.
A
Bot
is a WeChat client depends on which puppet you use.See more: - [What is a Puppet in Wechaty](https://github.com/wechaty/wechaty-getting-started/wiki/FAQ-EN#31-what-is-a-puppet-in-wechaty)
> If you want to know how to send message, see [Message](#Message)
> If you want to know how to get contact, see [Contact](#Contact)The World's Shortest ChatBot Code: 6 lines of Scala val options = new WechaytOptions val bot = Wechaty.instance(options) bot.onScan(payload => println("['https://api.qrserver.com/v1/create-qr-code/?data=',encodeURIComponent(qrcode),'&size=220x220&margin=20',].join()")) bot.onLogin(user => println("User ${user} logged in")) bot.onMessage(message => println("Message: ${message}")) bot.start()- Since
2020-06-01
Example: