Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
d823541e
Unverified
Commit
d823541e
authored
Jul 18, 2019
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use existing HTTP client on Telegram initialisation if it has already been set.
parent
89f22c27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
Request.php
src/Request.php
+1
-1
No files found.
CHANGELOG.md
View file @
d823541e
...
@@ -13,6 +13,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
...
@@ -13,6 +13,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Removed
### Removed
### Fixed
### Fixed
-
Don't output deprecation notices if no logging is enabled.
-
Don't output deprecation notices if no logging is enabled.
-
Respect custom HTTP Client initialisation, no matter when it is set.
### Security
### Security
## [0.59.0] - 2019-07-07
## [0.59.0] - 2019-07-07
...
...
src/Request.php
View file @
d823541e
...
@@ -264,7 +264,7 @@ class Request
...
@@ -264,7 +264,7 @@ class Request
}
}
self
::
$telegram
=
$telegram
;
self
::
$telegram
=
$telegram
;
self
::
setClient
(
new
Client
([
'base_uri'
=>
self
::
$api_base_uri
]));
self
::
setClient
(
self
::
$client
?:
new
Client
([
'base_uri'
=>
self
::
$api_base_uri
]));
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment