diff --git a/example/python/tdjson_example.py b/example/python/tdjson_example.py index 1b6a84c8..d7b2e86f 100644 --- a/example/python/tdjson_example.py +++ b/example/python/tdjson_example.py @@ -1,3 +1,9 @@ +// +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018 +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// from ctypes.util import find_library from ctypes import * import json diff --git a/example/swift/src/main.swift b/example/swift/src/main.swift index 10b075dc..ac81c632 100644 --- a/example/swift/src/main.swift +++ b/example/swift/src/main.swift @@ -1,3 +1,10 @@ +// +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018 +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// + import Foundation // TDLib Client Swift binding diff --git a/example/swift/src/td-Bridging-Header.h b/example/swift/src/td-Bridging-Header.h index 278d19a6..434ab2e4 100644 --- a/example/swift/src/td-Bridging-Header.h +++ b/example/swift/src/td-Bridging-Header.h @@ -5,7 +5,10 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // -// Use this file to import your target's public headers that you would like to expose to Swift. +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018 +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "td/telegram/td_json_client.h" diff --git a/example/uwp/app/App.xaml.cs b/example/uwp/app/App.xaml.cs index 7f6468b5..0ed0f968 100644 --- a/example/uwp/app/App.xaml.cs +++ b/example/uwp/app/App.xaml.cs @@ -1,18 +1,14 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; +// +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018 +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// +using System; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; -using Windows.Foundation; -using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; namespace TdApp diff --git a/example/uwp/app/MainPage.xaml.cs b/example/uwp/app/MainPage.xaml.cs index 958ae4bd..9bdf5070 100644 --- a/example/uwp/app/MainPage.xaml.cs +++ b/example/uwp/app/MainPage.xaml.cs @@ -1,20 +1,16 @@ -using System; -using System.Collections.Generic; +// +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018 +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// +using System; using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; using Td = Telegram.Td; using TdApi = Telegram.Td.Api; -using Windows.Foundation; -using Windows.Foundation.Collections; using Windows.UI.Core; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Controls.Primitives; -using Windows.UI.Xaml.Data; -using Windows.UI.Xaml.Input; -using Windows.UI.Xaml.Media; -using Windows.UI.Xaml.Navigation; namespace TdApp { @@ -26,7 +22,7 @@ namespace TdApp public MainPage() { - this.InitializeComponent(); + InitializeComponent(); Items = new System.Collections.ObjectModel.ObservableCollection(); _handler = new MyClientResultHandler(this); diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index a23c126c..3e8a3709 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -2261,7 +2261,7 @@ editInlineMessageCaption inline_message_id:string reply_markup:ReplyMarkup capti editInlineMessageReplyMarkup inline_message_id:string reply_markup:ReplyMarkup = Ok; -//@description Returns all entities (mentions, hashtags, bot commands, URLs, and email addresses) contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously @text The text in which to look for entites +//@description Returns all entities (mentions, hashtags, cashtags, bot commands, URLs, and email addresses) contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously @text The text in which to look for entites getTextEntities text:string = TextEntities; //@description Parses Bold, Italic, Code, Pre, PreCode and TextUrl entities contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously @text The text which should be parsed @parse_mode Text parse mode