Exemple #1
0
        public void LiveLocation_Returns()
        {
            var originalMessage = _b.SendLocation(_testMessage.Chat, new Location()
            {
                Latitude = 48.305859, Longitude = 14.286459
            }, livePeriod: 60);

            Assert.NotNull(originalMessage);

            for (int i = 0; i < 5; i++)
            {
                System.Threading.Thread.Sleep(3000);
                originalMessage = _b.EditMessageLiveLocation(originalMessage, new Location()
                {
                    Latitude = originalMessage.Location.Latitude + 0.001, Longitude = originalMessage.Location.Longitude + 0.001
                });
                Assert.NotNull(originalMessage);
            }

            Assert.NotNull(_b.StopMessageLiveLocation(originalMessage));
        }