Ejemplo n.º 1
0
        public async Task TestText()
        {
            User user = GetFirstConfiguredUser();

            await _bot.OnUpdateAsync(
                new Update
            {
                AuthorId = user.UserNames[0],
                Content  = "Mock update"
            });

            await _bot.FlushAsync();
        }
Ejemplo n.º 2
0
        public async Task Test()
        {
            User user = GetFirstConfiguredUser();

            await _bot.OnUpdateAsync(
                new Update
            {
                AuthorId = user.UserNames[0],
                Content  = "Mock update",
                Media    = new List <IMedia>
                {
                    new Photo("https://mock-photo-url.com")
                }
            });

            await _bot.FlushAsync();
        }